Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
correct escaping of < inside heading inline code
  • Loading branch information
mishig25 committed Sep 24, 2023
commit 180e9be640b41224bebe67318b29f889829949b3
2 changes: 1 addition & 1 deletion kit/preprocess.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ function headingWithAnchorLink(code) {
<span><IconCopyLink/></span>
</a>
<span>
${text.replace(REGEX_CODE, (_, group1) => `<code>${group1}</code>`)}
${text.replace(REGEX_CODE, (_, group1) => `<code>${group1.replaceAll("<", "&#60;")}</code>`)}
</span>
</h${level}>\n`;
});
Expand Down