Skip to content

Commit

Permalink
Merge pull request #26 from wuespace/md-escape-improvements
Browse files Browse the repository at this point in the history
Md escape improvements
  • Loading branch information
pklaschka authored Dec 11, 2024
2 parents e7e5ddd + e7a154f commit 4e8ba22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/writers/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ export class DocsWriter implements Writer {
}

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

writeDescriptionLine(line: string, prev: string): string {
return `${prev}${line}\n`;
return `${prev}${line.split("<").join("&lt;")}\n`;
}

writeVariable(variable: Variable, prev: string): string {
Expand Down

0 comments on commit 4e8ba22

Please sign in to comment.