entangled / filters

Set of pandoc filters for literate programming
Apache License 2.0
2 stars 5 forks source link

Cross-references with hyperlinks #4

Open jhidding opened 4 years ago

jhidding commented 4 years ago

Make references in code clickable, linking to their definition.

MyriaCore commented 4 years ago

This would be in pandoc-anotate-codeblocks, correct? I'd be interested in this functionality as well.

It would be nice if a list of references could also be supplied for a single definition.

jhidding commented 4 years ago

Indeed, this does require doing the conversion of code to html in the filter instead of letting pandoc take care of it. I believe pygments is the module to do this. I don't know if we can configure it to do a pre-pass highlighting all the Noweb references... It seems pygments has custom filter support.

numero-744 commented 1 year ago

We would also need to be able to add references in LaTeX for PDFs, right? Is it additional work or is the pandoc API the same?