@ -4,9 +4,35 @@ A Pandoc filter for linking Agda identifiers in inline code blocks.
## Usage
## Usage
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.
The filter operates on Markdown files generated by Agda's built-in
literate programming support (use `--html-highlight=auto` to keep the
<p>This is a literate Agda file. This span - <spanclass="Agda"><ahref="example.html#104"class="Record">span</a></span> - will be linked to the record below:</p>