awesome-rust
awesome-rust copied to clipboard
Replace node toc lint with a Rust one
Steps:
- Fix https://github.com/pbzweihander/markdown-toc/issues/2 and possibly other things there so it can replace ToC blocks in markdown
- Replace lint-markdown-toc with the Rust markdown-toc
@palfrey I checked the code base the --inline and replace options are disabled on purpose
I added the support to --inline and --replace in this https://github.com/pbzweihander/markdown-toc/pull/11 according to the specification
The fix got merged!
There still appears to be various issues with it that make it currently unusable for this repo:
- If I run repeatedly with
--replaceit seems to make multiple ToCs clashing with each other - There isn't any way to say "we want this block of text before the ToC" and/or "insert the ToC here" e.g. like the
<!-- toc -->/<!-- tocstop -->markers of the Node equivalent.