Repository navigation
Replies: 1 comment 4 replies
|
I reproduced this with Pandoc 3.12.1. For CSL JSON input, your With a minimal CSL style that renders the title using The HTML writer emits: <em>Understanding <em>BHS</em>: a manual for the users of <em>Biblia Hebraica Stuttgartensia</em></em>A browser's default styling leaves those inner words italic. In contrast, the LaTeX writer emits nested For HTML output, you can keep the CSL JSON title as written and apply CSS for this nesting level: em em { font-style: normal; }If your titles contain a third emphasis level, add One separate input-format detail: YAML bibliography fields and inline YAML The citeproc library's CSL JSON renderer implements flip-flopping, while its Pandoc output instance represents italics as emphasis. That distinction explains why the same library can pass its HTML flip-flop tests while Pandoc's HTML output still contains nested |
Uh oh!
There was an error while loading. Please reload this page.
It's sometimes necessary to have roman text in otherwise italic titles as, for instance, when a book title contains a book title.
Zotero's citeproc-js handles this reversal wherever
<i>tags appear (i.e.,<i>reverses the italic state, whether roman to italic or italic to roman; e.g.,Understanding <i>BHS</i>: a manual for the users of <i>Biblia Hebraica Stuttgartensia</i>rendersBHSandBiblia Hebraica Stuttgartensiain roman if the title itself is italicized or in italic if the title is otherwise in roman).Is this a useful quirk of citeproc-js where Pandoc citeproc doesn't intend to produce similar output? A limitation in Pandoc citeproc that could stand to be built out? Or a case where Pandoc citeproc already handles this use case but simply needs the input a bit differently than in the example above?
Thanks so much for the clarification!
N.B.:
<em>rather than<i>simply gets<em>passed through as if it's part of the title.All reactions