diff options
Diffstat (limited to 'anki-card-template')
-rw-r--r-- | anki-card-template/card.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/anki-card-template/card.js b/anki-card-template/card.js index 742184a..78aae6a 100644 --- a/anki-card-template/card.js +++ b/anki-card-template/card.js @@ -23,20 +23,17 @@ function calculateTagHue(input) { function HTMLtoParseArr(input) { var out = []; - var node = { data: "", type: "text", latin: false, japanese: false }; + var node = { data: "", type: "text" }; var tag_open = false; var new_node = false; var clear = () => { out.push(node); - node = { data: "", type: "text", latin: false, japanese: false }; + node = { data: "", type: "text" }; }; for (var i = 0; i < input.length; i++) { new_node = false; - if (!charNotJapanese(input[i])) node.japanese = true; - if (!charNotLatin(input[i])) node.latin = true; - if (input[i] == "<") { clear(); tag_open = true; |