Skip to content

Commit 49cb2f6

Browse files
committed
fix: do not show lint comments in the doc
1 parent c6e6a8b commit 49cb2f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/domainGenerator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const itemSort = (a, b) => {
1818
// This handles a few weird cases of raw HTML or over-escaping in the protocol JSON
1919
function parseSafeMarkdown(mdText) {
2020
// Inline codeblocks to doublecheck: IO.StreamHandle, Preload.PreloadingAttemptSource, Preload.RuleSet > backendNodeId, Accessibility.AXValueSource > nativeSource
21-
mdText = mdText.replaceAll('<', '&lt;').replaceAll('>', '&gt;');
21+
mdText = mdText.replaceAll('<', '&lt;').replaceAll('>', '&gt;').replaceAll(/^LINT\..*$\n/gm, '');
2222
const html = marked(mdText, {escape: true});
2323
return html.replaceAll('&amp;lt;', '&lt;').replaceAll('&amp;gt;', '&gt;');
2424
}

0 commit comments

Comments
 (0)