Citation handling for LaTeX output.
Bases: HTMLParser.HTMLParser
Citation Parser
Replaces html tags with data-cite attribute with respective latex cite.
Parse citations in Markdown cells.
This looks for HTML tags having a data attribute names data-cite and replaces it by the call to LaTeX cite command. The tranformation looks like this:
<cite data-cite=”granger”>(Granger, 2013)</cite>
Becomes
cite{granger}
Any HTML tag can be used, which allows the citations to be formatted in HTML in any manner.