|
|
4 years ago | |
|---|---|---|
| src | 4 years ago | |
| .gitignore | 4 years ago | |
| LICENSE | 4 years ago | |
| README.md | 4 years ago | |
| Setup.hs | 4 years ago | |
| agda-reference-filter.cabal | 4 years ago | |
| example.lagda.md | 4 years ago | |
| hie.yaml | 4 years ago | |
| stack.yaml | 4 years ago | |
| stack.yaml.lock | 4 years ago | |
A Pandoc filter for linking Agda identifiers in inline code blocks.
Compile your literate Agda file to Markdown (use --html-highlight=auto), then pandoc --filter agda-reference-filter -i output.md -o output.html to compile the Markdown to HTML. Inline code spans that are exactly the same as an identifier present in the raw HTML emitted by Agda (that is - either a definition or a reference) will be linked to the same place that Agda linked that identifier to.
agda --html-highlight=auto --html example.lagda.md
pandoc --filter agda-reference-filter -i example.md -o example.html