#30: Ignore ref tag

This commit is contained in:
mtkennerly 2023-08-11 04:41:29 +08:00
parent 2887682f1b
commit 261dfdc378
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
3 changed files with 84 additions and 5 deletions

View file

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