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

Rewriting header levels #14

Open
BrekiTomasson opened this issue Feb 19, 2020 · 1 comment
Open

Rewriting header levels #14

BrekiTomasson opened this issue Feb 19, 2020 · 1 comment

Comments

@BrekiTomasson
Copy link

Assuming you've got your # Introduction down already, and you're down in ## Theory or something, then you include a file that contains a # Supposition, then the resulting output would have a H1 nested under a H2.

Would it be possible to rewrite the header levels (via a config flag, most likely) to be additive? So that any header that is imported is just added to the current header level? In that case, since we were at H2 when we included a file, then the H1 in that file would be parsed as an H3 instead.

@camelaissani
Copy link
Owner

I'm not sure the header level should be driven by this plugin. This plugin objective is to include markdown files and not to deal with the markdown syntax itself.
That said, if someone find a quick win to do that, I will happily merge it.

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