Consider the follwing note:
This sentence needs a footnote.[^1]
And this one craves for the _same_ footnote.[^1]
[^1]: Here is the superfluous detail you need!
When Obsidian renders this note it shows the first reference to the footnote as “1-1” and the second as “1-2”.
I don’t care for this. Can I make the sub-indexing disappear, so that both footnote references just render as “1”?
Thanks for any help.
It might be possible to use a CSS snippet to hide the sub-index, if Obsidian marks it up separately.
Interesting! Thanks. How can I find out whether Obsidian marks it up separately? Iin the rendering process, I guess.)
You can inspect with the developer tools (Command-I [i, not L] on Mac, prolly Ctrl-I elsewhere; not available on mobile)
I’m back on this issue. I had a look in the HTML source of a rebdered note with mutiple footnote reoferences. A second reference looks like this:
<sup data-footnote-id="fnref-6-2-801b1d5ca9c3ffd2" class="footnote-ref" id="fnref-6-2-801b1d5ca9c3ffd2"><a href="#fn-6-801b1d5ca9c3ffd2" class="footnote-link" target="_blank" rel="noopener">[6-2]</a></sup>
<a href="#fn-6-801b1d5ca9c3ffd2" class="footnote-link" target="_blank" rel="noopener">[6-2]</a>
Can I use some CSS to make the “-2” part of the footnote reference “[6-2]” disappear?
As you can see, Obsidian doesn’t mark up the
-2 separately. I don’t think CSS can hide parts of text within a single element, but I could be wrong.
In order to solve this problem, I write a small plug-in, I hope it can help you.