You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: