Symbitic / remark-plugins

Remark plugins for Markbook
MIT License
14 stars 7 forks source link

remark-bibliography doesn't work with footnote CSL styles #38

Open alexkreidler opened 1 year ago

alexkreidler commented 1 year ago

I made a small change to index.js to allow loading the style from a file, then used the chicago-fullnote-bibliography.csl provided by Zotero.

The tool outputs something like

<a href="#ref-singh2016" class="citation">Parminder Singh, &#x3C;i>Vulkan Essentials&#x3C;/i> (Packt Publishing, 2016), https://www.packtpub.com/application-development/vulkan-essentials.</a>

which is rendered like this: Screenshot 2023-01-24 at 12-00-01 Developer Tools for Machine Learning (ML)

whereas pandoc does something like

<span
class="citation" data-cites="wiggers_bigsciences_2022"><a href="#fn1"
class="footnote-ref" id="fnref1"
role="doc-noteref"><sup>1</sup></a></span>

Screenshot 2023-01-24 at 12-01-21 Developer Tools for Machine Learning (ML)

Screenshot 
2023-01-24 at 12-00-48 Developer Tools for Machine Learning (ML)