Skip to content

Add support for footnotes #461

Description

@rebeccaalpert

Ansible was asking about support for footnotes, similar to https://gist.github.com/rt2zz/e0a1d6ab2682d2c47746950b84c0b6ee. There's no intent to use this feature anytime soon. We'd have to add an id to the footnote itself - we're just shipping the default behavior from Remark-GFM right now with no customization. The link to the footnote appears to behave correctly.

As of June 5, RHOAI is also interested in using footnotes in order to link to sources. Let's leave what the link goes to open, but enable PatternFly-styled footnotes.

This is what we ship right now (courtesy of default remark-gfm):

This is some text with a footnote.[^1]

[^1]: This is the full footnote text. 
        
Image

Goal is to get font sizes, colors, etc. to match PF where needed, and add prop passthroughs, etc. similar to what we have for code blocks, etc. so we can handle onClick, etc.

New components get added here: https://github.com/patternfly/chatbot/blob/main/packages/module/src/Message/Message.tsx#L280

End goal is to set up new component for footnotes and add tests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

PF6Applies to only the PF6 version

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions