Skip to content

Commit b7f84fc

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Replace three backticks in file content
1 parent 41a3612 commit b7f84fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extensions/ql-vscode/src/variant-analysis/view-autofixes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,8 @@ async function formatWithMarkdown(
796796
"```\n\n</details>\n\n ### Notes\n - notes placeholder\n\n";
797797

798798
// Format the content with Markdown
799-
const formattedContent = `## ${header}\n\n${frontFormatting}${content}${backFormatting}`;
799+
// Replace ``` in the content with \``` to avoid breaking the Markdown code block
800+
const formattedContent = `## ${header}\n\n${frontFormatting}${content.replaceAll("```", "\\```")}${backFormatting}`;
800801

801802
// Write the formatted content back to the file
802803
await writeFile(inputFile, formattedContent);

0 commit comments

Comments
 (0)