biblatex-csl-converter
Version:
a set of converters: biblatex => json, CSL => json, json => biblatex, json => CSL
16 lines (15 loc) • 438 B
text/typescript
// A much smaller list for export than for import, as biblatex does understand utf8
export const TexSpecialChars: [RegExp, string][] = [
[/\\/g, "\\textbackslash "],
[/\{/g, "\\{ "],
[/\}/g, "\\} "],
[/&/g, "{\\&}"],
[/%/g, "{\\%}"],
[/\$/g, "{\\$}"],
[/#/g, "{\\#}"],
[/_/g, "{\\_}"],
[/~/g, "{\\textasciitilde}"],
[/\^/g, "{\\textasciicircum}"],
[/ and /g, " {and} "],
[/\uFFFD/g, ""],
]