Answer prose round 1: 0 🔴, 6 🟡 (0 misread); say each pair's use once in the module docstring, name what the changelog entry keeps, and make item 391 stand alone

This commit is contained in:
2026-11-16 13:16:50 +01:00
parent bac9cf9756
commit f2b7eb7fd2
4 changed files with 12 additions and 15 deletions
+1 -2
View File
@@ -1,8 +1,7 @@
// Converts between markdown and ADF with @larvit/adf-codec. The mode is the one argument:
// to-adf stdin is markdown, stdout is the ADF document as JSON
// to-markdown stdin is a JSON array of ADF documents, stdout a JSON array of their markdown texts, in their order
// The portable calls behind those two drop each block's localId and empty paragraphs. The same two modes with the suffix
// -lossless, to-adf-lossless and to-markdown-lossless, call adf-codec's lossless pair, which keeps both.
// to-adf-lossless, to-markdown-lossless the same, through adf-codec's lossless pair in place of its portable pair
// Exit 0: stdout holds the answer. Exit 2: adf-codec refused the input, and stdout holds {"error": {code, message, path, position?}},
// with "index", the refused document's place in the array, beside "error" in to-markdown.
// Exit 1: the shim could not run, and stderr says why.