fix bibliography accent issues

This commit is contained in:
Christopher Olah
2017-01-10 18:03:47 -08:00
parent f4cd0a580a
commit 30b0fdd880
+5 -1
View File
@@ -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;