cristianvasquez / obsidian-prettify

A markdown prettifier for obsidian
GNU General Public License v3.0
130 stars 12 forks source link

"tab" as spaces causing incompatibility with "tab" related CSS #57

Open mrpurplecloud opened 3 years ago

mrpurplecloud commented 3 years ago

Update:

I choose "tab" over "mixed" and "one space" as my UL style and find out all tabs are replaced with 4 spaces in the prettified result. This behavior fails all "tab" based CSS customization, including Obsidian's Outliner plugin.

Previous message:

Obsidian Outliner is also a very useful plugin which only renders list items well when using spaces or 4-spaces tab.

However after prettifying all lists are reformatted and the cool outline effect are gone. Is it possible to make these two plugins compatible, maybe by adding a 2-spaces or 4-spaces option in addition to one space, mixed and tab?

Both prettifier and outline are indispensible plugins for a keen Obsidian user.

jjspace commented 3 years ago

This is likely related to #31 and could be fixed at the same time.

@mrpurplecloud One question you should check, do you have the option "Editor > Use Tabs" turned on? I think if you do that then it might enter tab characters instead of spaces.