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

Make header level configurable #117

Open
tobiastom opened this issue Jul 28, 2013 · 1 comment
Open

Make header level configurable #117

tobiastom opened this issue Jul 28, 2013 · 1 comment

Comments

@tobiastom
Copy link

I'd like to implement configurable header elements. Inside the class I would introduce a default level 0. This would result in all # headers to be transformed into <h1>.

Setting the initial level to 2 would result all # headers to be transformed into <h3>.
Having a level of 2 would create an <h4> tag from ##. Formula would be like <number of header levels> + <initial level>.

I would create a pull request for this if you like the idea.

This seems to be related to #102, but I don't like the idea of defining aliases to each and every header element.

@tobiastom
Copy link
Author

Maybe it would be a better open to pass this level as to transformMarkdown. Creating one Markdown instance and reusing it in different places would be much easier.

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

No branches or pull requests

1 participant