#30: Ignore ref tag
This commit is contained in:
parent
2887682f1b
commit
261dfdc378
3 changed files with 84 additions and 5 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue