-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Make first-heading-level configurable #51
Conversation
What's the case? |
I have a series of Markdown files which represent articles. The article title is in the metadata and gets rendered into the top-level heading in a separate section of the template from the content. The article content should only contain headings starting at the second level. |
OK, I’ll accept a PR for this! |
This looks pretty straightforward save for one caveat. This has an obvious interaction with the |
No, there’s no way to do that. I think it’s reasonable to to leave it up to the user! |
Updated both rules to allow specification of the heading level. |
👍 merging! |
I’ll release this once travis completes. |
Released in 3.1.0! |
Awesome! Thanks :) |
👍 |
It would be nice if an option could be provided to the
first-heading-level
rule to set it to something other than 1. I have a case where all my Markdown files should start at level 2 instead.