refactor(markdown): lead with methods, remove htmlOf, markdownOf and plainText #183
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/178-markdown-methods"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #178
Part of #146. Per the owner decision on #146 (scope update on #178), the free functions of this slice are removed, with no wrappers and no deprecation.
What
MarkdownDocument.markdown()andMarkdownDocument.html()now hold the writers' bodies;markdownOfandhtmlOfare gone.List<MarkdownInline>.plainText()replaces the freeplainText(inlines); exported asList.plainTextfromstd/markdown.std/markdown(html writer,Markdown.html, docs example inlib.trb), its tests, and the compiler (reference/render,documentation/markdown,site-html,site-layout).parsedDocumentand the internal scanner helpers; the unrelated privateplainTextinproject/manifest.trb.docs/standard-library/markdown.mdleads with the methods; the matching file underskills/is updated to the same text.Seed
No syntax change, no new native, no driver flag. The compiler now uses
extend List<MarkdownInline>anduse List.plainTextfromstd/markdown; if the seed cannot build it, CI will show it here.Test
No local build (CI only). Forge CI gates run on this PR; result recorded below in a comment.
e666293db1f164a187c8f164a187c8e4f80a3d6ae4f80a3d6a52e54203ec52e54203ec02d1323a1fCI on
02d1323a: all checks green (bootstrap, tier A including std/example tests, doc check and the repository type check; tier B skipped as no IR/backend/runtime change).MarkdownDocument(slice of #146) #178Checklist (head
02d1323a):inlines.plainText(); CI is green on this head (bootstrap, tier A with std/example tests, doc check, repo type check, pdisc, gates).MarkdownDocument.html()/.markdown()unchanged;Markdown.htmlcallsparse(text).html();plainTextkeeps its body asextend List<MarkdownInline>, re-exported withpublic use List.plainText. A grep of the PR head finds no remaining callers ofhtmlOf,markdownOfor the freeplainTextfor markdown (themarkdownOfinplayground/*.mjsand the privateplainTextinproject/manifest.trbare unrelated).docs/standard-library/markdown.mdleads with the methods, and theskills/copy is identical.Non-blocking:
html()andmarkdown()": thedocument.markdown()sentence runs past the wrapped line width; rewrap it on the next docs touch.