3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-19 14:45:44 +01:00

Write strike as HTML in adfToHtml and read it back in htmlToAdf

This commit is contained in:
2026-11-14 23:17:06 +01:00
committed by Lillem4n
parent 2ea7cf3631
commit fde890db90
10 changed files with 39 additions and 12 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ block's `data-*` attributes stand on its `<pre>`.
| ADF | HTML |
| --- | --- |
| `date` | `<time class="adf-date" datetime="2025-08-25" data-timestamp="1756080000000">2025-08-25</time>`, the day in UTC |
| `em`, `strong`, `code` | `<em>`, `<strong>`, `<code>` around the text |
| `em`, `strike`, `strong`, `code` | `<em>`, `<del>`, `<strong>`, `<code>` around the text |
| `emoji` | `<span class="adf-emoji" data-id="1f389" data-short-name=":tada:">🎉</span>`, its `text` the content |
| `hardBreak` | `<br>` |
| `inlineCard`, holding a `url` | `<a class="adf-inline-card" href="https://example.com/spec">https://example.com/spec</a>` |