Skip to content

Commit 4e8ba22

Browse files
authored
Merge pull request #26 from wuespace/md-escape-improvements
Md escape improvements
2 parents e7e5ddd + e7a154f commit 4e8ba22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/writers/docs.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ export class DocsWriter implements Writer {
1212
}
1313

1414
writeSection(section: string, prev: string): string {
15-
return `${prev}\n## ${section}\n`;
15+
return `${prev}\n## ${section.split("<").join("&lt;")}\n`;
1616
}
1717

1818
writeDescriptionLine(line: string, prev: string): string {
19-
return `${prev}${line}\n`;
19+
return `${prev}${line.split("<").join("&lt;")}\n`;
2020
}
2121

2222
writeVariable(variable: Variable, prev: string): string {

0 commit comments

Comments
 (0)