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

Answer the product-owner review's third round

This commit is contained in:
2026-10-02 17:41:54 +02:00
parent f4573ff9f1
commit 37b9079539
+2 -2
View File
@@ -70,8 +70,8 @@ if (result.ok) {
``` ```
Serves Goals 1, 2 and 7. Pure functions, each taking a whole document and returning a whole Serves Goals 1, 2 and 7. Pure functions, each taking a whole document and returning a whole
result; no I/O, no configuration. `markdownToHtml` and `htmlToMarkdown` convert through ADF, so result; no I/O, no configuration. `markdownToHtml` and `htmlToMarkdown` convert through ADF:
they drop whatever ADF cannot hold. they keep only what ADF holds, and refuse what `markdownToAdf` or `htmlToAdf` refuses.
```ts ```ts
adfToMarkdown(doc: AdfDocument): Result<string> adfToMarkdown(doc: AdfDocument): Result<string>