Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade remark and parse wiki links (#265)
* add tests for reference links - in preparation for parsing (but not resolving) wikilinks, add test cases for link references. * update remark and co; clean-up tests; add ofm fork * pass basic slate tests; unwrapImages; re-name legacy functions - update the markdown functions to use the new routines; re-name all the old ones *Legacy - make basic Slate tests pass, requires re-writing unwrapImages (trivial - this was a package before?) - update consuming code to use new interfaces; it does not quite work yet * more tests, configuration, clean-up - add full markdown test; use it to slowly isolate edge cases - clean-up and organize tests (continued) - discover mdast-util-to-string configuration options, use them, update tests - figure out some markdown escape rules, document and accept the behavior * remove several remark packages, refactor types - kick out all the legacy remark packages - refactor types: drop ts-mdast, prefer types from mdast, refactor base Slate node import to customized Slate node * fix image / paragraph wrapping + test * slate-transformer cleanup * strip wikilinks and fix a few tests - add wikilink handling at the mdast->slate level, converting them to plain text. This results in them being ignored in slate and escaped when serialized back to markdown - fix a few tests and remove some redundant (wikilink related) ones Plan here is to support wikilinks on initial parsing so importer pathway can convert to markdown links / image embeddings, but then to ignore them thereafter. Future work can consider supporting them directly * remove rehype * also remove remark
- Loading branch information