Skip to content

Commit 425b7b8

Browse files
authored
fix: remove all backticks from titles (#1189)
1 parent 6a1edfe commit 425b7b8

File tree

1 file changed

+1
-1
lines changed
  • packages/site-kit/src/lib/server/content

1 file changed

+1
-1
lines changed

packages/site-kit/src/lib/server/content/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export async function create_index(
3434
const sections = Array.from(body.matchAll(/^##\s+(.*)$/gm)).map((match) => {
3535
const title = smart_quotes(match[1])
3636
// replace < and > inside code spans
37-
.replace(/`(.+?)`/, (_, contents) => contents.replace(/</g, '&lt;').replace(/>/g, '&gt;'))
37+
.replace(/`(.+?)`/g, (_, contents) => contents.replace(/</g, '&lt;').replace(/>/g, '&gt;'))
3838
// turn e.g. `class:_name_` into `class:<em>name</em>`
3939
.replace(/_(.+)_/g, (_, contents) => `<em>${contents}</em>`);
4040

0 commit comments

Comments
 (0)