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

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

Open
hawkerm opened this issue Feb 21, 2021 · 1 comment

Comments

@hawkerm
Copy link

hawkerm commented Feb 21, 2021

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
Copy link
Author

hawkerm commented Jul 15, 2021

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

case PreserveState.None:
_writer.Write('\\');
_writer.Write(_settings.NewLineChars);
WritePrefix();
break;

Any thoughts?

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