obsidian-codemirror-options
obsidian-codemirror-options copied to clipboard
bug: broken markdown options with Tab size less than 4
Hi, I really like the last feature "Hide markdown Tokens". It creates for me almost an outliner experience! Thanks for bringing it to the Obsidian community.
I've been playing a little with my Obsidian settings and have noticed that "Hide markdown Token" doesn't display TODOs such as [ ], [x] properly with Tab size(Options -> Editor) less then 4 setting
So steps to reproduce: Preconditions
- Obisidian codemirror-options is installed
- Hide markdown Tokens is enabled
Steps
- Create TODO inside Obisidian
- Set Tab size less than 4
actual Broken layout of tasks expected Layout stays the same as we have with Tab size 4
Tab Size 2
Tab Size 4
Real World use-case :)
Have you tried to restart Obisdian after changing Tab size? Yes Have you tried to remove your theme and disable custom css? Yes
Yeah, unfortunately a lot of things break when changing the tab size from 4 to anything else. It breaks HyperMD's markdown parsing logic. Last I looked, it wasn't an easy fix but I'll take another look.
One workaround for now is to use spaces rather than tabs.
That seems to fix the problem:
Also note that the Outliner plugin has this same limitation