Compare commits

..
Author SHA1 Message Date
Christopher OlahandGitHub bf862cc4fe Merge pull request #106 from mlbileschi/mbileschi/allow-plaintext-brackets-bib
Remove brackets in bibtex entries that are used for plaintext rendering
2020-05-18 08:44:33 -07:00
Maxwell BileschiandGitHub 4b21625c70 revert template bibliography 2019-06-17 10:00:56 -04:00
Max Bileschi 97a01fae73 Remove brackets in bibtex entries that are used for plaintext rendering 2019-06-05 12:11:37 -04:00
2 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -3561,9 +3561,9 @@
}
},
"nwmatcher": {
"version": "1.4.4",
"resolved": "https://registry.npmjs.org/nwmatcher/-/nwmatcher-1.4.4.tgz",
"integrity": "sha512-3iuY4N5dhgMpCUrOVnuAdGrgxVqV2cJpM+XNccjR2DKOB1RUP0aA+wGXEiNziG/UKboFyGBIoKOaNlJxx8bciQ=="
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/nwmatcher/-/nwmatcher-1.4.1.tgz",
"integrity": "sha1-eumwew6oBNt+JfBctf5Al9TklJ8="
},
"object-assign": {
"version": "4.1.1",
+2 -1
View File
@@ -18,7 +18,8 @@ function normalizeTag(string) {
return string
.replace(/[\t\n ]+/g, ' ')
.replace(/{\\["^`.'acu~Hvs]( )?([a-zA-Z])}/g, (full, x, char) => char)
.replace(/{\\([a-zA-Z])}/g, (full, char) => char);
.replace(/{\\([a-zA-Z])}/g, (full, char) => char)
.replace(/[{}]/gi,''); // Replace curly braces forcing plaintext in latex.
}
export function parseBibtex(bibtex) {