Open retorquere opened 5 years ago
With this script:
const BibLatexParser = require('biblatex-csl-converter').BibLatexParser const input = ` @article{Adams2001, title = {{The \\emph{physical} volcanology of the 1600 eruption of Huaynaputina, southern Peru}}, } ` let parser = new BibLatexParser(input, { processUnexpected: true, processUnknown: { comment: 'f_verbatim' }, processInvalidURIs: true, }); let bib = parser.parse() console.log(JSON.stringify(bib.entries['1'].fields.title, null, 2))
I'm getting
[ { "type": "text", "text": "The ", "marks": [ { "type": "nocase" } ] }, { "type": "text", "text": "physical", "marks": [ { "type": "em" } ] }, { "type": "text", "text": " volcanology of the 1600 eruption of Huaynaputina, southern Peru" } ]
which leaves the part after the emph section unprotected. This isn't expected right?
emph
It's not an effect of the change in 1.6.9, 1.6.8 exhibits the same behavior.
This goes back to at least 1.5.0. I don't honestly know enough about the parser to know where to begin to look.
With this script:
I'm getting
which leaves the part after the
emph
section unprotected. This isn't expected right?