Skip to content

Commit

Permalink
Remove \r in HTML block
Browse files Browse the repository at this point in the history
  • Loading branch information
yufeih committed Feb 7, 2022
1 parent 99bd0ad commit 1bad29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docfx/lib/markdown/HtmlExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static MarkdownPipelineBuilder UseHtml(
case TabTitleBlock:
return true;
case HtmlBlock block:
block.Lines = new StringLineGroup(ProcessHtml(string.Join('\n', block.Lines.Lines), block, errors, elementCount));
block.Lines = new StringLineGroup(ProcessHtml(block.Lines.ToString().Replace("\r", ""), block, errors, elementCount));
return false;
case HtmlInline inline:
inline.Tag = ProcessHtml(inline.Tag, inline, errors, elementCount);
Expand Down

0 comments on commit 1bad29c

Please sign in to comment.