Skip to content

Commit 0ca460d

Browse files
authored
Fix empty book icon (#119)
1 parent c1b9914 commit 0ca460d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/plugins/remark-python-refs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ interface Match {
8585
function extractText(children: PhrasingContent[]): string {
8686
return children
8787
.map((c) => {
88-
if (c.type === "text") return c.value;
88+
if (c.type === "text" || c.type === "inlineCode") return c.value;
8989
if ("children" in c) return extractText(c.children as PhrasingContent[]);
9090
return "";
9191
})

0 commit comments

Comments
 (0)