Obsidian has a “readable line length” feature that improves readability for text-heavy documents by wrapping lines at a more comfortable width. While this is excellent for most documents, it causes an issue with documents containing Mermaid charts. These charts are cut off when “readable line length” is enabled, making them difficult to view and work with.
For example, I have hundreds of text documents that benefit from the readable line length feature, but a smaller subset of documents includes charts that do not render correctly due to the line length restriction.
Proposed solution
Introduce the ability to toggle the “readable line length” setting on a per-document basis. This would allow users to disable it for specific documents, such as those containing charts, without affecting the global setting.
Alternatively, provide a quick toggle in the interface (e.g., a button or command) to enable or disable “readable line length” without navigating into preferences. This would make it easier to switch modes when working with different types of documents.
Current workaround (optional)
The current workaround is to disable “readable line length” globally in preferences when working on documents with charts, then re-enable it for text documents. This process is cumbersome, especially when switching back and forth frequently.
Related feature requests (optional)
I have searched the forums but have not found a feature request directly addressing this issue. If there are similar requests, I will link them in a follow-up comment.
+1 for this. Being able to lock in the properties a note’s view mode would be very convenient for notes that should always be displayed with or without readable line length (large tables/databases/figures…)
I’ve been looking for the same thing for quite a while, though for the first part of that journey I did not know I was. Then I found that setting in Editor Settings and was like “Oh, that’s why everything I try does not work.” I did find this: GitHub - drichardson/obsidian-toggle-readable-line-length: Add hotkey and command palette toggle for Readable Line Length setting. but it is a global toggle and not per note settings. So this may speed up your switching. I basically hunt for a solution every few weeks when I have the time and then give up and say I am going to deal with it ever again.
I am actually a developer and tried to use custom snippets and “css-classes” to change the width on one page, but fought with that too. I am just not too familiar with Obisidian yet, so maybe I will figure that out eventually.
That indeed is a step in the right direction. I feel like this type of control should really be natively handled. Something along the lines of having a global toggle, and be able to specify if readable_line_length is True in the properties on a note-by-note basis if desired. Right now most options for this really feel like workarounds unfortunately