I was just testing my new Upcoming Birthdays script and setting the date format to D. MMMM when suddenly the table vertical spacing went berserk:
After inspecting using the dev console, I found that all "Birthday" items were parsed into ordered lists (maybe because something like 17. Maylooks like one).
I assume more people run into this (displaying data that "looks like" and gets somehow parsed), so what can be done?
The text was updated successfully, but these errors were encountered:
Ah, interesting. Dataview defers to the Obsidian markdown parser for rendering fields to let people put markdown in fields which gets rendered properly (particularly useful for links, bolds, italics, and so on). As you say, in this case it detects <number>. <something> as a ordered list and adds a bunch of spacing since they have large padding in CSS.
I can make a dv.literal() function which forces a field to be rendered exactly as-is without markdown as one option.
Hmm. Guess this would make some people happy (especially those who see single bullets, odd lists and this "ordered list interpretation").
BUT somehow I’m rather hesitant at inventing a new "language" and permanently throwing new bits & pieces to it. Eventually, this makes learning hard, logic unclear, and code awfully difficult to maintain. And of course somebody would come and wish for "not like a list item, but I want to use bold & highlight markdown codes please". Or something.
Not always easy to decide which way to go, I guess.
Assuming we had dv.literal(), for above example, would I then just change
I was just testing my new Upcoming Birthdays script and setting the date format to
D. MMMMwhen suddenly the table vertical spacing went berserk:After inspecting using the dev console, I found that all "Birthday" items were parsed into ordered lists (maybe because something like
17. Maylooks like one).I assume more people run into this (displaying data that "looks like" and gets somehow parsed), so what can be done?
The text was updated successfully, but these errors were encountered: