You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(packages): Correct handling of ampersands and tildes in bibtex
Accept `\&` for compatibility with legacy BibTeX, but do not
mandate it to be escaped for compatibility with other engines.
Support unescaped `~` as a non-breaking space for compability with
TeX, this is often found in existing bibliography files.
Support `\~` to render a tilde.
XML-escape the input so it can safely be wrapped in a `<sile>`
construct.
Closes#2050Closes#1860 (replaced by this implementation)
@@ -300,6 +334,7 @@ If no such abbreviation is found, the value is considered to be a string literal
300
334
301
335
String values are assumed to be in the UTF-8 encoding, and shall not contain (La)TeX commands.
302
336
Special character sequences from TeX (such as \code{`} assumed to be an opening quote) are not supported.
337
+
There are exceptions to this rule. Notably, the \code{~} character can be used to represent a non-breaking space (when not backslash-escaped), and the \code{\\&} sequence is accepted (though this implementation does not mandate escaping ampersands).
303
338
304
339
Values can also be composed by concatenating strings, using the \code{#} character.
0 commit comments