wip
This commit is contained in:
parent
da33d00e45
commit
34ea9979ab
@ -145,7 +145,7 @@ templates['fields.html'] = template({"1":function(container,depth0,helpers,parti
|
|||||||
var stack1;
|
var stack1;
|
||||||
|
|
||||||
return "<div style=\"text-align: left;\">\n"
|
return "<div style=\"text-align: left;\">\n"
|
||||||
+ ((stack1 = helpers["if"].call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.grouped : depth0),{"name":"if","hash":{},"fn":container.program(36, data, 0),"inverse":container.program(42, data, 0),"data":data})) != null ? stack1 : "")
|
+ ((stack1 = helpers["if"].call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.group : depth0),{"name":"if","hash":{},"fn":container.program(36, data, 0),"inverse":container.program(42, data, 0),"data":data})) != null ? stack1 : "")
|
||||||
+ "</div>\n";
|
+ "</div>\n";
|
||||||
},"36":function(container,depth0,helpers,partials,data) {
|
},"36":function(container,depth0,helpers,partials,data) {
|
||||||
var stack1;
|
var stack1;
|
||||||
|
@ -201,7 +201,7 @@ function sortTags(tags) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatField(field, definition, mode, html) {
|
function formatField(field, definition, mode, options) {
|
||||||
const markers = [
|
const markers = [
|
||||||
'audio',
|
'audio',
|
||||||
'character',
|
'character',
|
||||||
@ -221,7 +221,8 @@ function formatField(field, definition, mode, html) {
|
|||||||
const data = {
|
const data = {
|
||||||
marker,
|
marker,
|
||||||
definition,
|
definition,
|
||||||
html,
|
group: options.general.groupResults,
|
||||||
|
html: options.anki.htmlCards,
|
||||||
modeTermKanji: mode === 'term_kanji',
|
modeTermKanji: mode === 'term_kanji',
|
||||||
modeTermKana: mode === 'term_kana',
|
modeTermKana: mode === 'term_kana',
|
||||||
modeKanji: mode === 'kanji'
|
modeKanji: mode === 'kanji'
|
||||||
|
@ -146,11 +146,10 @@ class Yomichan {
|
|||||||
fields[name],
|
fields[name],
|
||||||
definition,
|
definition,
|
||||||
mode,
|
mode,
|
||||||
this.options.anki.htmlCards
|
this.options
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// console.log(note);
|
|
||||||
return note;
|
return note;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
{{#*inline "glossary"}}
|
{{#*inline "glossary"}}
|
||||||
<div style="text-align: left;">
|
<div style="text-align: left;">
|
||||||
{{#if grouped}}
|
{{#if group}}
|
||||||
{{#if definitions.[1]}}
|
{{#if definitions.[1]}}
|
||||||
<ol>
|
<ol>
|
||||||
{{#each definitions}}
|
{{#each definitions}}
|
||||||
|
Loading…
Reference in New Issue
Block a user