mirror of
https://github.com/wassname/template.git
synced 2026-07-06 05:17:25 +08:00
fix bibliography accent issues
This commit is contained in:
@@ -11,7 +11,11 @@ export default function(dom, data) {
|
||||
if(parsed) {
|
||||
parsed.forEach(e => {
|
||||
for (var k in e.entryTags){
|
||||
e.entryTags[k] = e.entryTags[k].replace(/[\t\n ]+/g, " ");
|
||||
var val = e.entryTags[k];
|
||||
val = val.replace(/[\t\n ]+/g, " ");
|
||||
val = val.replace(/{\\["^`\.'acu~Hvs]( )?([a-zA-Z])}/g,
|
||||
(full, x, char) => char);
|
||||
e.entryTags[k] = val;
|
||||
}
|
||||
bibliography[e.citationKey] = e.entryTags;
|
||||
bibliography[e.citationKey].type = e.entryType;
|
||||
|
||||
Reference in New Issue
Block a user