#26: Ignore bold/italic text
This commit is contained in:
parent
edb55c875b
commit
2b76438e55
2 changed files with 15 additions and 1 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue