Skip to content

Hardwrapping does not seem to be working correctly #3

@COCAGC

Description

@COCAGC

See http://daringfireball.net/projects/markdown/syntax#p

The following text:

Here is some text that should be hardwrapped by Markdown, so 
even though, starting at the word "even" this should not actually start its own line unless 2 spaces  
are added at the end of the line

Should look like this on the output

<p>Here is some text that should be hardwrapped by Markdown, so  
even though, starting at the word "even" this should not actually start its own line unless 2 spaces <br />  
are added at the end of the line</p>

written like

//Here is some text that should be hardwrapped by Markdown, so 
//even though, starting at the word "even" this should not actually start its own line unless 2 spaces  
//are added at the end of the line

in the javascript the litjs output is:

<p>Here is some text that should be hardwrapped by Markdown, so <br />even though, starting at the word &quot;even&quot; this should not actually start its own line unless 2 spaces <br /><br />are added at the end of the line</p>

Notice the <br/> tag after so and before even. I also notice 2 <br /> tags after the word spaces

This can tend to make the output look very messy.

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