Per-Document Toggle for 'Readable Line Length' Setting

Use case or problem

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 Like

Here’s an example of the rare case that I would like to disable “readable line length.”

In 1.8+ mermaid diagrams get a scrollbar.

That’s needed and partly addresses the issue.

Really, probably also needs a “make bigger” button, and a scroller.

That way you don’t have to adjust the readable line length
of the whole document, but just the diagram. Thanks for the info.

1921010-200

+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…)

1 Like