Skip to content

Markdown to HTML conversion issue with newline. #1049

@prasad83

Description

@prasad83
const input = "testing *1 line* italics\n\ntesting **2 line bold **test\n\ntesting <u style=\"font-family: inherit;\">3 line </u>\n\nunderline "
const c = new showdown.Converter({simpleLineBreaks: true})
const output = c.makeHtml(input);
<p>testing <em>1 line</em> italics</p>\n<p>testing **2 line bold **test</p>\n<p>testing <u style="font-family: inherit;">3 line </u></p>\n<p>underline </p>

Here 2 line bold is not wrapped with strong tag

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions