From 7c17447a872c9fb612afcb63cd69cf57c5220d91 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 4 Nov 2026 13:36:50 +0100 Subject: [PATCH] Write emoji, status, date and URL card as HTML elements, not the carry --- CHANGELOG.md | 8 ++++-- README.md | 2 ++ docs/decisions.md | 22 +++++++++++++-- spec/html.md | 13 +++++++++ src/html/emit/adf-to-html.test.ts | 41 +++++++++++++++++++++++---- src/html/emit/inline.ts | 3 ++ src/html/emit/node-element.ts | 18 ++++++++++++ src/html/node-element.ts | 31 ++++++++++++++++++++ src/html/parse/html-to-adf.test.ts | 45 ++++++++++++++++++++++++++++++ src/html/parse/html-to-adf.ts | 4 +-- src/html/parse/inline.ts | 9 +++--- src/html/parse/node-element.ts | 34 ++++++++++++++++++++++ src/html/parse/source.ts | 4 +++ todo.md | 26 ++++++++++++----- 14 files changed, 236 insertions(+), 24 deletions(-) create mode 100644 src/html/emit/node-element.ts create mode 100644 src/html/node-element.ts create mode 100644 src/html/parse/node-element.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 606abdd..06acf91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,14 +8,16 @@ 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 `em`, - `strong`, `code` and links as their elements. A paragraph, heading, quote, list, list item, code block or + breaks, a centered, uncaptioned external image holding no attribute but its URL and alt, an + emoji, a status, a date and a card holding only a URL (``, ``, + `