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

Regression in 0.4.0: links, bold, backticks require preceding blank line to render #2085

Closed
Splaktar opened this issue Jun 6, 2021 · 1 comment

Comments

@Splaktar
Copy link

Splaktar commented Jun 6, 2021

Marked version: 0.4.0+

Describe the bug
Links, bold, backticks, don't render in a <div> unless there is a blank line prior to their being used.

To Reproduce
Steps to reproduce the behavior:

Broken

<div>
  [link](https://angularjs.org)
</div>

Working

<div>

  [link](https://angularjs.org)
</div>

Expected behavior

  • It works with marked@0.3.19 (demo) and breaks in 0.4.0.

Is there any way for me to quickly monkey patch the renderer/parser (sorry I'm not real familiar with marked) to make this work again?

I've got a couple of sites with hundreds of pages of markdown that parses fine with 0.3.19 but breaks with the latest versions of marked. For security, it's obviously critical to update, but I want to avoid going in and adding 20,000 blank lines to my files if at all possible...

@UziTech
Copy link
Member

UziTech commented Jun 6, 2021

see #1907 (comment)

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

2 participants