summaryrefslogtreecommitdiff
path: root/tmpl/fields.html
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-08-26 12:18:35 -0700
committerAlex Yatskov <alex@foosoft.net>2017-08-26 12:18:35 -0700
commit18321ee4ed3e1254ebea5d81d1f99e4963595e8d (patch)
treebaba4d04e5da94546fc5cf10c7b9b69ba372bd4a /tmpl/fields.html
parent190c749527c5c5f8afec7ead6956a5f3d7c1a422 (diff)
ankidroid furigana support
Diffstat (limited to 'tmpl/fields.html')
-rw-r--r--tmpl/fields.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/tmpl/fields.html b/tmpl/fields.html
index df3f3a96..2794484c 100644
--- a/tmpl/fields.html
+++ b/tmpl/fields.html
@@ -43,7 +43,15 @@
{{/inline}}
{{#*inline "furigana"}}
- {{#furigana}}{{{definition}}}{{/furigana}}
+ {{~#if html~}}
+ {{#furigana}}{{{definition}}}{{/furigana}}
+ {{~else~}}
+ {{#furiganaPlain}}{{{definition}}}{{/furiganaPlain}}
+ {{~/if~}}
+{{/inline}}
+
+{{#*inline "furigana-plain"}}
+ {{#furiganaPlain}}{{{definition}}}{{/furiganaPlain}}
{{/inline}}
{{#*inline "glossary"}}