András Simonyi <[email protected]> writes: > On Wed, 28 May 2025 at 20:27, Nikolaos Chatzikonstantinou > <[email protected]> wrote: >> The >> issue I have is with the function `org-cite-csl-render-bibliography': >> it should not output <style> elements because when one exports an >> org-mode document > > but I'm attaching a tentative patch which moves the CSL-related CSS > fragment to the head of the exported HTML using the same mechanism > that was injecting the CSL-related LaTeX preamble. Comments on whether > we should change the current behaviour and the concrete implementation > in the patch are welcome!
As I understand it, the point of the behavior is that the user should have a nicely formatted bibliography out of the box. For HTML, I think the better way to go would be the following changes. - The .csl-entry style definition should be included in the default stylesheet, so the user gets the formatting out of the box without oc-csl having to inject it especially. - oc-csl should *not* inject any style definitions in the exported HTML, not in the HTML head either. This relieves oc-csl from a fiddly task, do, and makes it easier for the user to fiddle with the CSS without being overridden by an injected style. - The manual should list .csl-entry (and .csl-bib-body) with the other classes in [[info:org#CSS support]]. Yours, Christian
