I have recently detected unwanted behaviour in Obsidian regarding the program’s way of handling reading view of text marked with %%. I don’t remember this happening before.
Steps to reproduce
Type in normal text and text intended to be comments not visible for the public/reading mode. Type some more text below.
Expected result
The two blocks of text that are not intended to be invisible should be one line apart.
Actual result
The two blocks of text are some lines apart (probably the same amount as there were commented lines).
Environment
Tried it only on Win 10, in the Sandbox vault with no plugins and themes activated.
SYSTEM INFO:
Obsidian version: v1.1.16
Installer version: v1.1.15
Operating system: Windows 10 Home 10.0.19045
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on
If in Editor settings you enable Strict line breaks, the problem goes away.
But I never remember having that option activated before and never experienced this issue before.
That indeed works.
But I think the program handling this is not ideal the way it is.
I have many many notes where I have multiple lines I decided to not publish and they are all lining up underneath each other with no empty lines. I could put some extra line there with regex of course, but still…
In general it’s a good idea to put blank lines between blocks in Markdown. Sometimes it’s required, and doing it the rest of the time keeps things consistent and avoids having to remember when it’s required and when it’s not.
But I agree, it looks like a bug. (I’m not the person who decides what’s a bug, tho.)
The problem I had to start with was that you cannot include multiple lines with carriage returns and all with one %% pair in front and one at the end. You need to pair them off on each line.
It indeed works on multiple lines with soft line breaks.
But now I remember how it all happened: first I was using strikethroughs and then I decided that the reader should not see those deleted ideas (for fear of losing face). But because my strikethroughs were on multiple lines including lists (sometimes multiple lines deep), the structure of start and end was breaking and along with it, the comments as well.
Anyway, I hope it is treated as a bug, otherwise I need to manually oversee what behaviour needs attention.
There shouldn’t be extra space added between the heading and the inserted link. I’d expect comments to have no effect for the reading mode, but in this case, they do:
if the comment is left out, there is no extra space.
Expected:
SYSTEM INFO:
Obsidian version: v1.3.7
Installer version: v1.3.5
Operating system: Windows 10 Pro 10.0.22621
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 0
Plugins enabled: 0