We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a1edfe commit 425b7b8Copy full SHA for 425b7b8
packages/site-kit/src/lib/server/content/index.ts
@@ -34,7 +34,7 @@ export async function create_index(
34
const sections = Array.from(body.matchAll(/^##\s+(.*)$/gm)).map((match) => {
35
const title = smart_quotes(match[1])
36
// replace < and > inside code spans
37
- .replace(/`(.+?)`/, (_, contents) => contents.replace(/</g, '<').replace(/>/g, '>'))
+ .replace(/`(.+?)`/g, (_, contents) => contents.replace(/</g, '<').replace(/>/g, '>'))
38
// turn e.g. `class:_name_` into `class:<em>name</em>`
39
.replace(/_(.+)_/g, (_, contents) => `<em>${contents}</em>`);
40
0 commit comments