mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-21 23:46:21 +01:00
Add adfToPlainText, writing a document's text with no markup
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
## Unreleased
|
||||
|
||||
- `adfToPlainText` writes a document as text with no markup, for a search index, a notification or an email: blocks a blank line apart, `• ` and `1.` list markers with nesting indented, a hard break as a line feed, and a mention, emoji, date or status as the text it shows. It refuses what `adfToHtml` refuses. A table writes its cells as blocks for now.
|
||||
- `readAdfDocument` and the three writers name the node `not-an-adf-document` refuses: `path` leads
|
||||
to a node that is not an ADF node, and the message says what is wrong with it, such as which
|
||||
attribute holds a value that is not JSON. A getter, an object holding itself, a throwing Proxy
|
||||
|
||||
Reference in New Issue
Block a user