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 processes differently on client and server #687

Closed
willrstern opened this issue Nov 18, 2015 · 3 comments
Closed

Header processes differently on client and server #687

willrstern opened this issue Nov 18, 2015 · 3 comments

Comments

@willrstern
Copy link

using marked.min.js:

  • marked("- #1 fan") -> <ul>\n<li>#1 fan</li>\n</ul>\n

using marked via npm

  • marked("- #1 fan") -> <ul>\n<li><h1 id="1-fan">1 fan</h1>\n</li>\n</ul>\n
@willrstern willrstern changed the title Header processes differently on marked.min.js Header processes differently on client and server Nov 18, 2015
@Feder1co5oave
Copy link
Contributor

Have you tried updating your npm package? According to https://www.npmjs.com/package/marked it is updated to the last version available here, which includes ledsun@1df5893 that introduced the different behaviour you're seeing.

@ankitduseja
Copy link

+1 And the version I am using is 0.3.5 installed from npm. It is generating id's for h tags.

@joshbruce
Copy link
Member

See #981

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

4 participants