BracketPipe icon indicating copy to clipboard operation
BracketPipe copied to clipboard

Markdown generation is adding extra '\' character when encountering <br>

Open hawkerm opened this issue 4 years ago • 1 comments

Given this HTML:

<div style="font-size:12pt;;"><p style="font-size:10.5pt;margin:0;">Some <strong>initial </strong>text.</p><p style="font-size:10.5pt;margin:0;"><br></p></div>

Calling Html.ToMarkdown is returning:

Some **initial** text.

\

With an extra non-sensical '\' at the end.

hawkerm avatar Feb 21 '21 09:02 hawkerm

@erdomke could it possible be this code branch behaving unexpectedly?

https://github.com/erdomke/BracketPipe/blob/cba73e50322e27c0b6379f85ff2c3ec7ed7d24cb/src/BracketPipe/Parser/Text/MarkdownWriter.cs#L384-L388

Any thoughts?

hawkerm avatar Jul 15 '21 03:07 hawkerm