mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-20 15:15:44 +01:00
Spell a portable link title holding a backslash, an entity reference or, in a table cell, a pipe
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
holding another mark as `!adf:carry{json="…"}`, and `adfToPortableMarkdown` drops that mark.
|
||||
- `adfToPortableMarkdown` keeps both targets of a linked external image standing inline, as in a
|
||||
table cell: `[alt](href) ([image](url))`, where it wrote `[alt](url)` and dropped the link's target.
|
||||
- `adfToPortableMarkdown` keeps a link's title holding a backslash or an entity reference, and in a
|
||||
table cell one holding a `|`, escaping each: `[docs](https://example.com "C:\\dir")`, where it
|
||||
dropped the title. `portableMarkdownToAdf` reads it back to the same title.
|
||||
- `losslessMarkdownToAdf` names the CommonMark spelling to write when it refuses a directive whose
|
||||
node CommonMark spells, such as `[](href)` for a linked `!adf:mediaSingle`.
|
||||
- Every reader and writer takes time linear in the text when it holds many `<!--`, `<?`,
|
||||
|
||||
Reference in New Issue
Block a user