#26: Ignore bold/italic text

This commit is contained in:
mtkennerly 2023-05-24 02:11:32 +08:00
parent edb55c875b
commit 2b76438e55
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
2 changed files with 15 additions and 1 deletions

View file

@ -17,7 +17,7 @@ type WikiNode = string | Template | {
content: Array<WikiNode>,
attributes: { [key: string]: string },
} | {
type: "comment",
type: "comment" | "bold" | "italic",
content: Array<WikiNode>,
} | {
type: "link",
@ -658,6 +658,8 @@ function flattenParameter(nodes: Array<WikiNode>): [string, boolean] {
}
break;
case "comment":
case "bold":
case "italic":
break;
case "tag":
const [flatT, regularT] = flattenParameter(node.content);