mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-21 23:46:21 +01:00
Write no style attribute in adfToHtml, and name every spelling of <div>, <span> and <mark> in their refusals
This commit is contained in:
+7
-2
@@ -7,9 +7,14 @@
|
||||
`0.3.1` wrote the carry element, and `htmlToAdf` reads them back. A link around the image is the media's link
|
||||
mark. The carry element `0.3.1` wrote for them still reads.
|
||||
- `adfToHtml` writes underline as `<u>`, subscript and superscript as `<sub>` and `<sup>`, a text colour as
|
||||
`<span style="color:…">`, a background colour as `<mark style="background-color:…">` and a paragraph's or
|
||||
heading's alignment as `style="text-align:…"`, where `0.3.1` wrote the carry element, and `htmlToAdf` reads them
|
||||
`<span data-text-color="…">`, a background colour as `<mark data-background-color="…">` and a paragraph's or
|
||||
heading's alignment as `data-align="center"` or `data-align="end"`, where `0.3.1` wrote the carry element, and `htmlToAdf` reads them
|
||||
back. The carry element `0.3.1` wrote for them still reads.
|
||||
- `adfToHtml` writes a table cell's background as `data-background-color="…"`, where `0.3.1` wrote
|
||||
`style="background-color:…"`, so the HTML holds no `style` attribute. `htmlToAdf` still reads the `0.3.1` spelling.
|
||||
A background that isn't letters and digits after an optional `#` is written too, where it rode the carry element.
|
||||
- `htmlToAdf` names every spelling of the dialect's `<div>`, `<span>` and `<mark>` in the refusal of one it can't
|
||||
read.
|
||||
- `adfToHtml` writes a paragraph's or heading's indentation as `data-indent-level="2"`, where `0.3.1` wrote the carry
|
||||
element, and `htmlToAdf` reads it back. The carry element `0.3.1` wrote for it still reads.
|
||||
- `htmlToAdf` reads an expand's `<details class="adf-expand" open="">`, as a browser writes one its user opened, as the same expand.
|
||||
|
||||
Reference in New Issue
Block a user