Skip to content

Commit ecb1f12

Browse files
committed
avoid issue with \_ on pandoc attributes
1 parent ac0156c commit ecb1f12

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/core/handlers/embed.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
/*
2-
* embed.ts
3-
*
4-
* Copyright (C) 2022 by Posit, PBC
5-
*
6-
*/
2+
* embed.ts
3+
*
4+
* Copyright (C) 2022-2025 by Posit, PBC
5+
*/
76

87
import { LanguageCellHandlerContext, LanguageHandler } from "./types.ts";
98
import { baseHandler, install } from "./base.ts";
@@ -63,7 +62,8 @@ const kHandlers: EmbedHandler[] = [
6362
handled: true,
6463
markdownFragments,
6564
resources: [
66-
notebookAddress.path,
65+
// Narrow fix for https://github.com/quarto-dev/quarto-cli/issues/9224
66+
notebookAddress.path.replaceAll("\\_", "\\\\_"),
6767
],
6868
});
6969
} else {

0 commit comments

Comments
 (0)