Skip to content

Commit c4148d2

Browse files
authored
Fix a markdown table rendering bug (#87)
1 parent 671663a commit c4148d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TemplateRefGenerator/Utils/MarkdownUtils.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ public static string Escape(string input) => input
2121
.Replace("<", "&lt;")
2222
.Replace(">", "&gt;")
2323
.Replace("\r", "")
24-
.Replace("\n", "<br />");
24+
.Replace("\n", "<br />")
25+
.Replace("|", "\\|");
2526

2627
public static string ConvertDocsLinks(string input) => input
2728
// Remove hostname and /en-us/ prefix so that links under the same domain are relative

0 commit comments

Comments
 (0)