Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#26] Footnotes support #27

Merged
merged 2 commits into from
Sep 22, 2022
Merged

[#26] Footnotes support #27

merged 2 commits into from
Sep 22, 2022

Conversation

Sorokin-Anton
Copy link

There is extension "footnotes" in cmark-gfm, that was unsupported by this lib
It extends a Node type with footnotes (like [^1)
I added FOOTNOTE_DEFINITION and FOOTNOTE_REFERENCE to Node
Internally it is an option, so I exposed it as an option,
maybe it should be pseudo-extension instead

@kivikakk kivikakk linked an issue Sep 22, 2022 that may be closed by this pull request
Sorokin-Anton and others added 2 commits September 23, 2022 08:57
There is extension "footnotes" in cmark-gfm, that was unsupported by this lib
It extends a Node type with footnotes (like `[^1`)
I added `FOOTNOTE_DEFINITION` and `FOOTNOTE_REFERENCE`  to `Node`
Internally it is an option, so I exposed it as an option,
maybe it should be pseudo-extension instead
@kivikakk kivikakk merged commit 205f820 into kivikakk:master Sep 22, 2022
@kivikakk
Copy link
Owner

Thank you so much! I added a test to make sure this doesn't regress in the future.

The fromNode implementation is more than sufficient — if someone really wants to construct footnote nodes programmatically, then we can welcome that PR then.

I think it's fine to leave options exposed as options and extensions exposed as extensions. This is a very (very) thin wrapper, and I'm happy for it to remain that way.

Let me know if you want a new release on Hackage for this.

@Sorokin-Anton
Copy link
Author

Sorokin-Anton commented Sep 23, 2022

Let me know if you want a new release on Hackage for this.

@kivikakk That would be great, thanks

@kivikakk
Copy link
Owner

Done! 0.2.5 is now on Hackage: https://hackage.haskell.org/package/cmark-gfm-0.2.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Footnotes extension support
2 participants