Skip to content

Extra newlines added #69

@SharathHuddar

Description

@SharathHuddar

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions