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

Header level start #69

Closed
blabno opened this issue Aug 21, 2013 · 1 comment
Closed

Header level start #69

blabno opened this issue Aug 21, 2013 · 1 comment

Comments

@blabno
Copy link

blabno commented Aug 21, 2013

Hi,
I have a following usecase:

H1 Package.name
H2 SubPackage.name
(showdown.makeHtml(SubPackage.description))

So it would be great if I could call showdown.makeHtml(SubPackage.description,3)
so that in case there is following code in SubPackage.description

\#Given
\#When
\#Then

I could get output like this:
H1 Package.name
H2 SubPackage.name
H3 Given
H3 When
H3 Then

blabno pushed a commit to blabno/showdown that referenced this issue Aug 21, 2013
@pdeschen pdeschen removed the Feature label Jan 23, 2015
@tivie tivie closed this as completed in b84ac67 Jun 17, 2015
@tivie
Copy link
Member

tivie commented Jun 17, 2015

Added this feature in b84ac67

To set the header level start to 3 (<h3>) just pass it as an option. Example:

var conv = new showdown.Converter({headerLevelStart: 3})

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

3 participants