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

One-line HTML input renders invalid HTML output #387

Closed
larsgw opened this issue May 5, 2017 · 2 comments
Closed

One-line HTML input renders invalid HTML output #387

larsgw opened this issue May 5, 2017 · 2 comments
Assignees
Labels

Comments

@larsgw
Copy link

larsgw commented May 5, 2017

Input:

<div><div>a</div><div>b</div></div>

Output:

<div><div>a</div>
<div>b</div>
<p></div></p>

Full code:

const Showdown = require('showdown')
const converter = new Showdown.Converter()
const input = '<div><div>a</div><div>b</div></div>'
console.log(converter.makeHtml(input))

Showdown version: 1.6.4


I'm not sure if my input is invalid (and I should expect undefined behaviour), but the output certainly is!

@tivie tivie self-assigned this May 7, 2017
@tivie tivie added the bug label May 7, 2017
@tivie
Copy link
Member

tivie commented May 7, 2017

Related to #357

@tivie
Copy link
Member

tivie commented May 28, 2017

This should (hopefully) be fixed now, without much performance issues.

@tivie tivie closed this as completed in 6fbc072 Jun 1, 2017
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

2 participants