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

Markdown parser acting funky with raw html #1370

Closed
EtanTheTartan opened this issue Oct 29, 2018 · 7 comments
Closed

Markdown parser acting funky with raw html #1370

EtanTheTartan opened this issue Oct 29, 2018 · 7 comments
Labels

Comments

@EtanTheTartan
Copy link

Since I see that the markdown renderer is referenced within Panini, I decided to open the issue here, but feel free to tell me I'm wrong here.

I have a markdown file. I went from doing an <h2> as ## to using raw html. IE, I went from this:

##Our Rules
Effective: April 2, 2015

To:

<h2>Our Rules</h2>
Effective: April 2, 2015

The very strange thing here is that, when there's no line break in the raw <html>, the 2nd option, the markdown doesn't render! Anything subsequent render as a string literal and not as the intended markdown -> tag.

simply adding a line break between <h2>Our Rules</h2> and Effective: April 2, 2015 fixed it. As so:

<h2>Our Rules</h2>

Effective: April 2, 2015
@styfle
Copy link
Member

styfle commented Oct 29, 2018

Try adding a space after the hash.

## Our Rules
Effective: April 2, 2015

Our Rules

Effective: April 2, 2015

@EtanTheTartan
Copy link
Author

That didn't change anything @styfle !

@styfle
Copy link
Member

styfle commented Oct 29, 2018

It works fine on the demo page

@UziTech
Copy link
Member

UziTech commented Oct 29, 2018

Could it be because Panini is using ^0.3.14 our latest version is 0.5.1

@EtanTheTartan
Copy link
Author

Was that a specific issue within ^0.3.14 @UziTech ?

@UziTech
Copy link
Member

UziTech commented Oct 30, 2018

Not sure, but as @styfle showed it seems to work with the latest version.

@styfle
Copy link
Member

styfle commented Oct 31, 2018

I confirmed that adding a space works from version 0.3.14 all the way to the latest version.

https://jsbin.com/feculaqota/edit?html,output

I don't believe this is an issue with marked.

The bug is likely in panini.

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

No branches or pull requests

3 participants