mirror of
https://github.com/wassname/template.git
synced 2026-07-13 17:46:00 +08:00
fix citation bugs
This commit is contained in:
@@ -10,6 +10,9 @@ export default function(dom, data) {
|
||||
let parsed = bibtexParse.toJSON(rawBib);
|
||||
if(parsed) {
|
||||
parsed.forEach(e => {
|
||||
for (var k in e.entryTags){
|
||||
e.entryTags[k] = e.entryTags[k].replace(/[\t\n ]+/g, " ");
|
||||
}
|
||||
bibliography[e.citationKey] = e.entryTags;
|
||||
bibliography[e.citationKey].type = e.entryType;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user