Skip to content

fix(footnotes): support Tufte CSS sidenotes in collectInlineSidenotes - #539

Open
EnesKartal wants to merge 1 commit into
kepano:mainfrom
EnesKartal:fix/tufte-css-sidenotes
Open

EnesKartal wants to merge 1 commit into
kepano:mainfrom
EnesKartal:fix/tufte-css-sidenotes

Conversation

@EnesKartal

Copy link
Copy Markdown
Contributor

Fixes #530

Summary

  • Updated collectInlineSidenotes in src/elements/footnotes.ts to recognize Tufte CSS sidenotes (label.sidenote-number + optional input.margin-toggle + span.sidenote, including class="margin-toggle sidenote-number") alongside Org Mode CSS sidenotes.
  • Added a regression test in tests/footnote-numbering.test.ts covering both standard and margin-toggle sidenote-number Tufte CSS markup.

Verification

  • npx vitest run tests/footnote-numbering.test.ts tests/markdown.test.ts (2 test files, 52 tests passed)
  • npm run lint:unused (passed)

This branch has not been deployed

No deployments
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.

Tufte CSS sidenotes are removed instead of becoming footnotes

1 participant