From f8157d3ad82fd8fb66ef9dc29918b5895c1cee42 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 5 Nov 2026 11:10:21 +0100 Subject: [PATCH] Write and read a table as its elements in the HTML dialect --- CHANGELOG.md | 8 +-- README.md | 5 +- docs/decisions.md | 14 ++++- spec/html.md | 37 +++++++++--- src/adf/document.ts | 2 +- src/html/cell-element.ts | 71 ++++++++++++++++++++++ src/html/data-attributes.ts | 4 +- src/html/emit/adf-to-html.test.ts | 59 ++++++++++++++++++- src/html/emit/adf-to-html.ts | 62 +++++++++++++++---- src/html/parse/html-to-adf.test.ts | 84 +++++++++++++++++++++++--- src/html/parse/html-to-adf.ts | 95 +++++++++++++++++++++++++----- 11 files changed, 388 insertions(+), 53 deletions(-) create mode 100644 src/html/cell-element.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 17d7a2c..5f7b3b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,13 +11,13 @@ need. The README's first comparison table lists the npm packages running in Node that convert ADF to or from markdown, wrappers and forks aside; its second table lists other ecosystems' libraries and Atlassian's own paths. -- `adfToHtml` writes ADF as HTML: paragraphs, headings, lists, quotes, code blocks, rules, hard - breaks, a centered, uncaptioned external image holding no attribute but its URL and alt, and +- `adfToHtml` writes ADF as HTML: paragraphs, headings, lists, quotes, tables, code blocks, rules, + hard breaks, a centered, uncaptioned external image holding no attribute but its URL and alt, and `em`, `strong`, `code` and links as their elements. An unmarked emoji, mention, status, date and card holding a URL, or `data` holding one, not both, are ``, ``, ``, `