There was an error while loading. Please reload this page.
1 parent c1b9914 commit 0ca460dCopy full SHA for 0ca460d
1 file changed
src/plugins/remark-python-refs.ts
@@ -85,7 +85,7 @@ interface Match {
85
function extractText(children: PhrasingContent[]): string {
86
return children
87
.map((c) => {
88
- if (c.type === "text") return c.value;
+ if (c.type === "text" || c.type === "inlineCode") return c.value;
89
if ("children" in c) return extractText(c.children as PhrasingContent[]);
90
return "";
91
})
0 commit comments