add dictionary formatting field

This commit is contained in:
Alex Yatskov 2017-01-07 20:48:59 -08:00
parent 786ef851c9
commit f7d7b1bd84
2 changed files with 3 additions and 3 deletions

View File

@ -324,6 +324,7 @@ function modelIdToMarkers(id) {
return {
'anki-term-model': [
'audio',
'dictionary',
'expression',
'expression-furigana',
'glossary',
@ -335,6 +336,7 @@ function modelIdToMarkers(id) {
],
'anki-kanji-model': [
'character',
'dictionary',
'glossary',
'glossary-list',
'kunyomi',

View File

@ -124,6 +124,7 @@ class Yomichan {
const markers = [
'audio',
'character',
'dictionary',
'expression',
'expression-furigana',
'glossary',
@ -139,9 +140,6 @@ class Yomichan {
for (const marker of markers) {
let value = definition[marker] || null;
switch (marker) {
case 'audio':
value = '';
break;
case 'expression':
if (mode === 'term_kana' && definition.reading) {
value = definition.reading;