Skip to content

Conversation

@mflatt
Copy link
Member

@mflatt mflatt commented Jan 5, 2026

Based on ideas and discussion in #543.

Support a #:margin mode for define-footnote as an alternative to putting footnotes in a section created by a footnote-part identifier that is bound by define-footnote. The margin format is defined by default CSS, and different CSS magic could make cause a "margin note" to actually render differently.

At the footnote, hyperlink its number back to the reference to the footnote, as as typical for many web sites with footnotes.

For testing, use a strategy that has worked well for Rhombus Scribble (and that probably should be made more reusable).

@mflatt mflatt mentioned this pull request Jan 5, 2026
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Resyntax analyzed 5 files in this pull request and found no issues.

Support a `#:margin` mode for `define-footnote` as an alternative to
putting footnotes in a section created by a `footnote-part` identifier
that is bound by `define-footnote`. The margin format is defined by
default CSS, and different CSS magic could make cause a "margin note"
to actually render differently.

At the footnote, hyperlink its number back to the reference to the
footnote, as as typical for many web sites with footnotes.

Use `scriblib/render-cond` to specialie Latex output and avoid the
double inclusion of content previously warned against in the
documentation. Meanwhile, warn against limitations of creating
footnotes inside footnotes.

For testing, use a strategy that has worked well for Rhombus Scribble
(and that probably should be made more reusable).
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Resyntax analyzed 5 files in this pull request and found no issues.

@fare
Copy link
Contributor

fare commented Jan 9, 2026

Does define-footnote allow for nested footnotes? Plain note doesn't work quite right. Maybe the situation should be documented either way.

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.

2 participants