SRD table footnotes #21
Replies: 2 comments
-
|
You essentially did the same thing I would have done. I dont have any issues with this. What about everyone else? |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, I think this makes sense: its the most flexible while achieving the goal. I was debating suggesting consistency with the footnote "label" between single- and multi-footnote tables, but the more I think about it, asterisk for singles is effectively the same as a Nice intuition, I like it 👍 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Obsidian's clipboard-html-to-markdown converter is a library called Turndown. I'll be referring to it as Turndown throughout this and don't want anyone to be confused.
Situation
In the PF1E SRD vault, I'm currently working on Rules → Magic Items. The magic item rules very frequently have tables with footnotes, like the following:
So, to recap how aonprd handles table footnotes:
*1Problems
This raises the question of how we should be handling these in the Obsidian SRD conversions. There are a couple problems here:
My Current Solutions
Because I needed to work on SRD conversion, I went ahead with a 'solution' so I could keep working.
Single-Footnote tables:
Find the footnote in the table and replace it with
\*(as Turndown doesn't catch this). Remove italics from footnote line (to match multi-footnote lines) and replace*with\*.Result:
Multi-Footnote tables:
Find all footnotes in table (The regex \w\d\| will catch them all, but will have false positives; should still make finding them easier. Regex is
\w\d|in vim/neovim (but not Obsidian vim)), and surround each with<sup></sup>.Make all footnotes a unordered list item and add
:after the number.Result:
(do excuse the messed-up html syntax highlighting; the markdown lsp I use has trouble with html sometimes)
Other Notes on Table conversion
When converting a table, I paste within Obsidian and get a table like this:
I convert it to this:
_instead of*, which is normally fine, but with some tables, the_will break the table in Live Preview, so I've been find-and-replacing them with*so the table works in Live Preview.Beta Was this translation helpful? Give feedback.
All reactions