4 ms·
Why not use YAML "front matter" instead of abusing XML comments, which may (I didn't spend much thought on it) break it for people, who also want to encode the
by zmix 4y ago
Why not use YAML "front matter" instead of abusing XML comments, which may (I didn't spend much thought on it) break it for people, who also want to encode the Markdown into XML/HTML?
- kangruixiang 4y agoThe XML comments are just my personal preference because it's fast. I have it bound to ",," so that with 2 taps, I could make a card in a few seconds. It's also supported automatically in different markdown programs like Typora/Obsidian. When I upload to the web, the comments also disappear, so the flow of the note isn't interrupted if I just want to read. For example, when you can look at my personal wiki here, you wouldn't know these are cards unless you see the original markdown files. https://kangruixiang.github.io/wiki/ https://kangruixiang.github.io/wiki/ You can also use anything else instead. In my example, you could use {{}} as the front of the card instead of comments. I just chose comments myself.