Obsidian_to_Anki icon indicating copy to clipboard operation
Obsidian_to_Anki copied to clipboard

Note ID prevents proper nesting of lists.

Open MahmoudFawzyKhalil opened this issue 4 years ago • 6 comments

image image

Putting a line break fixes it

image image

But running scan vault again resets it and removes the line break

MahmoudFawzyKhalil avatar Dec 17 '20 18:12 MahmoudFawzyKhalil

Right, I might be able to do a special case for this. At the moment, the script automatically replaces ‘double new line then ID’ by ‘single newline then ID’, since it looks nicer usually.

Pseudonium avatar Dec 17 '20 22:12 Pseudonium

Thank you for your prompt reply. I look forward to a solution or some sort of work around.

BTW this addon/plugin is incredible. Thank you for your hard work!

MahmoudFawzyKhalil avatar Dec 17 '20 22:12 MahmoudFawzyKhalil

Hmm, I've tested this with some online markdown editors, and this doesn't seem to break nested lists. I wonder if this could be a bug in Obsidian's markdown to HTML engine? I'll file this as a bug report there for now.

Pseudonium avatar Dec 18 '20 08:12 Pseudonium

Alright, here's the bug report on the Obsidian forum

Pseudonium avatar Dec 18 '20 08:12 Pseudonium

I'm also experiencing this and it is pretty annoying since I like to use lists + folding to get some extra "active recall".

Currently I've modified the plugin code locally to add two new line lines before the ID, although it is a bit ugly.

@Pseudonium as a temporary fix, do you think it would be possible to (have the option to) move the ID to the top of a note instead of the bottom. Example: image

Alternatively, since I'm still unfamiliar with the codebase and typescript, could you point me to the section of the code where this change can be implemented? Thank you!

RoamanEmpire avatar Mar 31 '21 13:03 RoamanEmpire

Alright, here's the bug report on the Obsidian forum

This bug report maked as wont-fix on obsidian side. Therefore, we ourselves have to comeup with a fix.

ShootingKing-AM avatar Jan 19 '24 17:01 ShootingKing-AM