mirror of
https://github.com/wassname/template.git
synced 2026-06-27 16:32:20 +08:00
Merge pull request #106 from mlbileschi/mbileschi/allow-plaintext-brackets-bib
Remove brackets in bibtex entries that are used for plaintext rendering
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user