Skip to content

Commit de7eae2

Browse files
jacobsormeCopilot
andauthored
Update src/core/render/embed.js
Co-authored-by: Copilot <[email protected]>
1 parent 86231b0 commit de7eae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/render/embed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function extractFragmentContent(text, fragment, fullLine) {
1919
if (!fragment) {
2020
return text;
2121
}
22-
let fragmentRegex = `###|\\/\\/\\/\\s*\\[${fragment}\\]`;
22+
let fragmentRegex = `(?:###|\\/\\/\\/)\\s*\\[${fragment}\\]`;
2323
const contentRegex = `[\\s\\S]*?`;
2424
if (fullLine) {
2525
// Match full line for fragment

0 commit comments

Comments
 (0)