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

Extra newlines added #69

Open
SharathHuddar opened this issue Nov 26, 2024 · 0 comments
Open

Extra newlines added #69

SharathHuddar opened this issue Nov 26, 2024 · 0 comments

Comments

@SharathHuddar
Copy link

When I convert html to markdown, I see that an extra newline is added.

For the following code:

  const html = `<p>Hello</p><p>1</p><p>2</p><p>3</p>`
  const result = NodeHtmlMarkdown.translate(html)
  console.log(result)

I get this output:

Hello

1

2

3

The output essentially is Hello\n\n1\n\n2\n\n3.
Is there a way to work around this?

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