sschmidTU / mr-kanji-search-wtk

WTK-Search is a Kanji search engine using (multiple) Wanikani radicals or RTK names, on a RTK element dataset of 3000+ Kanji
https://sschmidtu.github.io/mr-kanji-search-wtk/
7 stars 2 forks source link

enable comments in elementsTree #38

Closed sschmidTU closed 1 year ago

sschmidTU commented 1 year ago

put comment in elementsTree (after //) instead of "comments" field in .md

image

sschmidTU commented 1 year ago

Try finding a kanji with a certain id:

wtk.search("test", { filterOnDocInsteadOfQuery: (doc) => {return doc.id === '113' }})

(doesn't work if there's an error in the .md file, like elementsTree having a comment, but not being enclosed in " quotes)

sschmidTU commented 1 year ago

Done for now, moved existing elementsTree comments that were in the comments field to elementsTree. Example: elementsTree: "stone // cliff+mouth in RTK. RTK: This is the one and only time that the second stroke in cliff will reach over to the middle of the horizontal stroke"