tnichols217 / obsidian-columns

GNU General Public License v3.0
204 stars 9 forks source link

Checkboxes don't work #16

Open benlug opened 2 years ago

benlug commented 2 years ago

Checkboxes don't work

When in reading mode, I can't tick regular checkboxes (- [ ]).

Steps to reproduce:

```col-md
- [ ] 
tnichols217 commented 2 years ago

Sorry Im taking a while, Im still looking into this

josephdong1000 commented 1 year ago

Just wanna say I also wish this was added! The checkbox bug breaks the great functionality of the plugin

It seems to me that I'm able to check the boxes in Preview mode, but the markdown checkboxes aren't edited when I go into Editing mode. Maybe the checkbox hook is not registering in a codefence?

tnichols217 commented 1 year ago

Unfortunately, I've been really busy at the moment and don't have much time to implement FRs right now, but if anyone has a PR, I'm open to reviewing and merging it

ThisTheThe commented 1 year ago

image I found a workaround. If you place a note embed into a table, you can create a multi-column checklist with functional checkboxes. It has some inelegancies but it's nothing some CSS can't fix.

tnichols217 commented 1 year ago

Checkboxes should be supported with callout syntax now!, but still not in the codeblocks unfortunately

josephdong1000 commented 1 year ago

I did a bit of testing, and from what I can tell, checkboxes work with callout syntax! Code block checkboxes would be nice but this will more than suffice for now :)))

I did notice that using [!col] and [!col-md] syntax leads to huge gaps between the top of the columns and whatever was above them. Not sure if this is fixable behavior because I'm thinking the gap is just where the [col] callout is located. Picture below to show what I mean

image
tnichols217 commented 1 year ago

Ah, interesting, I can probably fix the large gaps with more css, ill look into that

dawid-ai commented 1 year ago

Any progress with checkboxes in code blocks? I have built my whole daily notes & tasks using it, to learn now that checkboxes don't work :/

tnichols217 commented 1 year ago

Unfortunately, I have not found a way to make checkboxes that are checkable in the codeblock yet, but I am leaving this issue open until something works.

For reference: the codeblock uses the MarkdownRenderer.renderMarkdown method provided by Obsidian, which does not support dynamic editing like link auto updating and checkboxes

dawid-ai commented 1 year ago

I have checked every plugin out there - all of them have the same issue and so far no one found a way to fix it.

josephdong1000 commented 1 year ago

Maybe the issue can be brought up to the obsidian devs?

MrTakizawa commented 2 weeks ago

this issue is still unsolved till now :( When I tailored my template and found the checkbox doesn't work, that's the time I felt despair xd