diff --git a/src/plugins/remark-python-refs.ts b/src/plugins/remark-python-refs.ts index 906e2d2..de7713a 100644 --- a/src/plugins/remark-python-refs.ts +++ b/src/plugins/remark-python-refs.ts @@ -85,7 +85,7 @@ interface Match { function extractText(children: PhrasingContent[]): string { return children .map((c) => { - if (c.type === "text") return c.value; + if (c.type === "text" || c.type === "inlineCode") return c.value; if ("children" in c) return extractText(c.children as PhrasingContent[]); return ""; })