News for hackers. Stuff that matters.
Re:Lists, more lists, and the power of checkboxes (2019) by nemosaltat on Tuesday August 03, 2021 @07:17PM (#28055451)
I started using Obsidian recently and have been using it for markdown checklists. I tried to create collapsible sections, but found that as soon as I enclose a section with a <details> tag, Markdown rules are no longer applied, so if I want my items on separate lines I need to at <br> tags. It’s not the end of the world, but I’d love a workaround if you’ve found one.
Re:Lists, more lists, and the power of checkboxes (2019) by hanklazard on Tuesday August 03, 2021 @07:52PM (#28055699)
I don’t have a solution for that, but I did just start looking through the large community plugins list — there are a lot that address these types of specific use-cases, so it might be worth a browse:

https://github.com/obsidianmd/obsidian-releases/blob/master/...

Re:Lists, more lists, and the power of checkboxes (2019) by hanklazard on Thursday August 05, 2021 @03:36PM (#28078472)
(not able to edit my previous post at this point, but wanted to follow-up for you and anyone else reading this in the furture)

I just watched a video for an Obsidian plugin called "Outliner" and I think it does what you're trying to do with collapsible sections. Here's the video, it's the first plugin that he reviews: https://youtu.be/2234DXKbNgM

Re:Lists, more lists, and the power of checkboxes (2019) by high_priest on Tuesday August 03, 2021 @07:22PM (#28055484)
- "If I want my items on separate lines"

What's wrong with

- [ ] Text

- [ ] Text2

Re:Lists, more lists, and the power of checkboxes (2019) by nemosaltat on Tuesday August 03, 2021 @07:58PM (#28055746)
This works in the raw markdown edit mode, but in preview mode, if I write this:

<details> <summary>People</summary> [ ] Bob [ ] Alice [x] Nemosaltat </details>

Preview mode will yield this (all on one-line):

[ ] Bob [ ] Alice [x] Nemosaltat

It’s collapsible, but not visually pleasing for longer lists.

My solution has been to do this:

<details> <summary>People</summary> [ ] Bob <br /> [ ] Alice <br /> [x] Nemosaltat <br /> </details>

But it’s less pleasing to look at in edit mode, and I have to remember to append the break tags.