Skip to content

Commit c15bed4

Browse files
committed
Update the right copy of ExpectedOutput.md
1 parent c5b3805 commit c15bed4

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎libraries/api-documenter/src/MarkdownRenderer.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class MarkdownRenderer {
121121
.replace(/&/g, '&')
122122
.replace(/</g, '&lt;')
123123
.replace(/>/g, '&gt;');
124-
return textWithBackslashes
124+
return textWithBackslashes;
125125
}
126126

127127
/**

‎libraries/api-documenter/src/test/ExpectedOutput.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,14 @@ This is a **bold** word.
3030
## Bad characters
3131

3232
**\*one\*two\*three\*four**
33+
34+
## Characters that should be escaped
35+
36+
Double-encoded JSON: "{ \\"A\\": 123}"
37+
38+
HTML chars: &lt;script&gt;alert("\[You\] are \#1!");&lt;/script&gt;
39+
40+
HTML escape: &amp;quot;
41+
42+
3 or more hyphens: - -- \-\-\- \-\-\-- \-\-\--- \-\-\-\-\-\-
43+

0 commit comments

Comments
 (0)