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

Same content with different line endings produce different HTML #534

Closed
yufeih opened this issue Mar 23, 2021 · 2 comments · Fixed by #560
Closed

Same content with different line endings produce different HTML #534

yufeih opened this issue Mar 23, 2021 · 2 comments · Fixed by #560
Labels

Comments

@yufeih
Copy link
Contributor

yufeih commented Mar 23, 2021

Starting from 0.24.0, line ending (\r\n or \n) affects output in certain cases:

Console.WriteLine(Markdown.ToHtml("a\\\nb"));      // <p>a<br />b</p>
Console.WriteLine(Markdown.ToHtml("a\\\r\nb"));    // <p>a\b</p>
Console.WriteLine(Markdown.ToHtml("a  \nb"));      // <p>a</br />b</p>
Console.WriteLine(Markdown.ToHtml("a  \r\nb"));    // <p>a  </br />b</p>

Related: dotnet/docfx#7219 dotnet/docfx#7424

@xoofx xoofx added the bug label Mar 23, 2021
@xoofx
Copy link
Owner

xoofx commented Mar 23, 2021

It is likely a regression from #481

@generateui could you have a look?

@generateui
Copy link

I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants