-
-
Notifications
You must be signed in to change notification settings - Fork 713
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
Why's markdown-toc modifying my front-matter? #151
Comments
@maxime1992 thanks for the issue. I'll try to reproduce this when I have a chance. |
Thanks @doowb You can give it a go with this file: |
I looked into this some and the reason the front-matter is being re-formatted is because I think to fix this, we need to update
Then we can update The other option is to parse out the front-matter manually in this repository and concat it back together with the updated contents, but there are some edge cases that If I can get to it this weekend, I'll try to make the to get this working. If anyone else gets to it first, I'm happy to review PRs :) |
I'm hitting this issue now as well. In addition, when there's front matter some of the files, |
The comment in the README.md stating that |
I would expect
markdown-toc
to only modify what's inside the<!-- toc --><!-- tocstop -->
block.And from the README:
But when I run that on a blog post written in markdown and using a front-matter header to pass metadata, here's a (breaking⚠️ ) update:
I tried to use the flag
--no-stripHeadingTags
but nothing changed and I don't think it's related to that.The text was updated successfully, but these errors were encountered: