Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace node toc lint with a Rust one #1328

Open
palfrey opened this issue Jul 31, 2022 · 4 comments
Open

Replace node toc lint with a Rust one #1328

palfrey opened this issue Jul 31, 2022 · 4 comments

Comments

@palfrey
Copy link
Collaborator

palfrey commented Jul 31, 2022

Steps:

  1. Fix Support --inline option pbzweihander/markdown-toc#2 and possibly other things there so it can replace ToC blocks in markdown
  2. Replace lint-markdown-toc with the Rust markdown-toc
@neuodev
Copy link

neuodev commented Aug 22, 2022

@palfrey I checked the code base the --inline and replace options are disabled on purpose

@neuodev
Copy link

neuodev commented Aug 22, 2022

I added the support to --inline and --replace in this pbzweihander/markdown-toc#11 according to the specification

@neuodev
Copy link

neuodev commented Aug 22, 2022

The fix got merged!

@palfrey
Copy link
Collaborator Author

palfrey commented Sep 3, 2022

There still appears to be various issues with it that make it currently unusable for this repo:

  • If I run repeatedly with --replace it 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants