Code blocks in list error


Steps to reproduce

  1. The file in VS Code is right:

    * triple backticks can be preceded ..
    	* .. only by indentation, not by hyphen.11111111111111111111111111111111111111111111111111
    	* so put code block on next line under list item mark "- "
    		* and indent it more.
    		* hyphen has to be followed by spaceand indent it more
    		  to act as list item.
    		* aaaa
                int a = 0;1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
                graph LR
                    A --> B
    		* see visualization of whitespace characters
    	* e.g. in EmEditor

  2. In Obsidian is wrong. The left is source mode, the right is reading mode.

Obsidian run in sanbox, every setting is default.

Same thing happens out of lists, when there is text in front of the three code block closing symbols.

You should try to use markdown standard formatting.

You can format the text using this plugin GitHub - platers/obsidian-linter: An Obsidian plugin that formats and styles your notes with a focus on configurability and extensibility..

Please search before posting.