Footnote anchor CSS question

Inexplicably, every other Live Preview element eliminates markdown syntax except for footnotes. Is there some simple CSS snippet I could use that hides the markdown elements from footnote anchors? So that my anchor goes from looking like [^1] to 1. Thank you.

Something like this, maybe?

Obsidian_eI16wcbQYS

:not(.cm-active) > .cm-footref:is(.cm-formatting-link-start, .cm-formatting-link-end) {
    display: none;
}
1 Like

Perfect thank you – it worked!!!

Thank you very much. I would like to have this in exported PDF files as well. Could you please extend the CSS?

I don’t think that’s possible, unfortunately.

In the editor (Source mode and Live Preview), there are three sections so we can hide the start and end with the above CSS.

Obsidian_xyi70GnGAT


In Reading view and PDF export, the footnote reference is a single element.

Screenshot 2024-09-04 070634

I see. Thank you for your reply.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.