Live Preview: Better support of code blocks in lists

This bug has been around for almost three years now.
Instead of focusing on the core editor, more and more features get sherlocked from other plugins.

The lack of understanding which behavior is essential to a note taking app and which bugs to fix first (this thread here has 13.5k views!) is really concerning.

4 Likes

Iā€™m willing to try my hand at fixing this. Does Obsidian use an open source markdown parser? Or are we just totally at their mercy of whenever they decide to look at this?

4 Likes

Hi, sorry I donā€™t check the forums very often. Not sure if you need it but I tried to record a video with the keystrokes showing:
CleanShot 2024-11-06 at 12.34.12

Just voicing support for this. Tried Obsidian for work notes and stopped within 2 minutes because code blocks cannot format correctly in a list.

2 Likes

Hey,
It has been almost 2 years since this bug was reported. For programmers, it is a crucial feature. Can you please add it to the roadmap?

2 Likes

Iā€™ve been hating this problem since day 1. I really wish this could be fixed too. As a programmer, it is a big problem and breaks the flow of indented lists.

Please consider.

The conclusion is clear to me: the devs donā€™t expect Live Preview to be relied on for notes related to software development.

Maybe thereā€™s a plugin that tracks which pages should have Live Preview disabled from the frontmatter?

Your conclusion can be translated as:
Obsidan literally does not welcome software engineer users.

Maybe not welcoming to the type of GUI-driven software developers like Visual Basic coders but very welcoming to the type of low-level assembly coders lol

Even for machine code developers, Code Blocks are essential ā€” whether theyā€™re inside a list or outside of one.

That said, Iā€™ve come to a realization: itā€™s not that the Obsidian developers are unwilling to address this issueā€”they simply lack the capability to fix it.
If you take a look at the main post, youā€™ll see that Code Blocks in Live Preview mode have actually been optimized to some extent. Itā€™s just that the results fall short of expectations.
So, the only conclusion is this: the Obsidian team canā€™t crack this problem, and since the software is closed-source, other developers canā€™t step in to contribute a fix either.

So, thereā€™s really no point in continuing to give feedback or beg for a fix for this issue ā€” itā€™s not going to help. Itā€™s just not going to happen unless a highly experienced developer shows up and manages to provide a solution for this bug without access to the source code

Code blocks are essential, but Live Preview is not

Live Preview and Codeblocks are essential. The rest is not.

1 Like