Markdown bullet spacing

58 views
Skip to first unread message

bluespire

unread,
Jan 6, 2021, 10:10:01 PM1/6/21
to TiddlyWiki
The spacing between bullets is different between the normal TW5 renderer and the Markdown renderer (Mardown's seems to be double-spaced (2 newlines). How can I change that spacing?

Brian Radspinner

unread,
Jan 7, 2021, 2:09:07 AM1/7/21
to TiddlyWiki
You can try adjusting the top & bottom margins of the P element inside each of the Markdown-produced OL > LI items. Make a new tiddler and tag it with $:/tags/Stylesheet. In the tiddler body add some CSS for adjusting those paragraph margins, like this...

ol > li > p { margin: 0.25em auto; }

This will have equal top & bottom margins, adjust the first margin value to adjust the spacing.

If you want to adjust them each independently, try this instead...

ol > li > p { margin: 0.25em auto 0.25em; }

Adjust the first value for the top margin, third value for the bottom margin.

bluespire

unread,
Jan 7, 2021, 11:21:13 PM1/7/21
to TiddlyWiki
I tried to figure this out, but I can only seem to modify the stylesheet for all of TW. How would I do it for just the Markdown elements?
Reply all
Reply to author
Forward
0 new messages