jgm / jgm/commonmark-hs

Footnote in AST lacks index information

Open
#43 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
145
Forks
38
PR merge metrics
No merged PRs in 30d

Description

The `HasFootnote` instance for Pandoc AST ignores the footnote identifiers, and labels:

https://github.com/jgm/commonmark-hs/blob/c9afe7c1ca25dbc1f0580187bb422bd1681ae1b5/commonmark-pandoc/src/Commonmark/Pandoc.hs#L215-L219

And it looks like Pandoc is doing its own state management to compute the identifier, and render the references accordingly. Is storing these footnote identifiers/labels in the Pandoc AST explicitly out of scope?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.