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

Added additional an empty html comment when convert html to markdown! #1029

Open
mrhdias opened this issue Feb 16, 2025 · 0 comments
Open

Added additional an empty html comment when convert html to markdown! #1029

mrhdias opened this issue Feb 16, 2025 · 0 comments

Comments

@mrhdias
Copy link

mrhdias commented Feb 16, 2025

Every time that I run this code to convert html to markdown an empty html additional comment is added to result.

const converter = new showdown.Converter();
console.log(converter.makeMarkdown(`<h1 id="test">Test1</h1>
<h2 id="test2">Test2</h2>
<ol>
<li>abc</li>
<li>def</li>
<li>ghi</li>
</ol>
<p>Test3</p>`));

Output:

# Test1

## Test2

1. abc
2. def
3. ghi

<!-- --> <===== Aditional empty comment

Test3
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

1 participant