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

Implemented bottom footnotes with backreferences #2480

Merged
merged 7 commits into from
May 9, 2024

Conversation

totikom
Copy link
Contributor

@totikom totikom commented Apr 21, 2024

Added option bottom_footnotes, which renders footnotes with backreferences.
It is basically a copy-paste from this example from pulldown-cmark.
Fixes #1285
Sanity check:

  • Have you checked to ensure there aren't other open Pull Requests for the same update/change? (There are no open PR for this feature)

Code changes

  • Are you doing the PR on the next branch?

If the change is a new feature or adding to/changing an existing one:

  • Have you created/updated the relevant documentation page(s)?

@totikom totikom marked this pull request as ready for review April 22, 2024 20:13
Copy link
Collaborator

@Keats Keats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds a complex function, it needs to have tests

components/markdown/src/markdown.rs Outdated Show resolved Hide resolved
@totikom totikom requested a review from Keats April 24, 2024 20:11
@totikom totikom requested a review from Keats April 26, 2024 21:37
@Keats Keats merged commit b76d37c into getzola:next May 9, 2024
5 checks passed
@Keats
Copy link
Collaborator

Keats commented May 9, 2024

Thanks!

veluca93 pushed a commit to veluca93/zola that referenced this pull request May 14, 2024
* Implemented bottom footnotes with backreferences

Fixes getzola#1285

* Added bottom_footnotes option to configuration.md

* Renamed fix_github_style_footnotes()

* Added tests for convert_footnotes_to_github_style()

* Changed test to plain html instead of Vec<Event>

* Added integration test for footnotes

* Applied suggested changes
Keats pushed a commit that referenced this pull request Jun 20, 2024
* Implemented bottom footnotes with backreferences

Fixes #1285

* Added bottom_footnotes option to configuration.md

* Renamed fix_github_style_footnotes()

* Added tests for convert_footnotes_to_github_style()

* Changed test to plain html instead of Vec<Event>

* Added integration test for footnotes

* Applied suggested changes
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.

None yet

3 participants