From 2cf87d7baeb0ec2b0221e2349989fd0b0967d26b Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 27 Dec 2022 12:46:10 +0100 Subject: update readme with syntax explanation --- readme.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/readme.md b/readme.md index bcad401..9de275d 100644 --- a/readme.md +++ b/readme.md @@ -2,6 +2,11 @@ work in progress +this is an anki card template for sentence mining. it has fields for a foreign +sentence, foreign word, translated word and an optional translated sentence. it +supports a markdown-like [syntax](#syntax) for adding furigana that is visible +on either both sides or only on the back side. + ## example ### input @@ -29,6 +34,19 @@ work in progress Don't underestimate the master of the house... +## syntax + +html is passed through, so inline styling (should) still work. + +|input|html output|example| +|-|-|-| +|`[kanji](furigana)`|`kanjifurigana`
(furigana visible on back side only)|kanjifurigana| +|`{kanji}(furigana)`|`kanjifurigana`
(furigana visible on both sides)|kanjifurigana| +|`*text*`|`text` (bold)|text| +|`a\nb`|`a
b` (line break)|a
b| +|`\\`|`\` (backslash)|\\| +|`\[escaped](this)`|`[escaped](this)` (escaped furigana)|\[escaped](this)| + ## set-up i don't know how to create a teplate deck (if that's even a thing), so these -- cgit v1.2.3