#6541·Zettlr

Support editing hard-wrapped markdown files

Author: ddekanyCreated Sep 1, 2026Updated Sep 7, 2026
Labelsfeature

Checklist

  • Zettlr does not possess this feature (if it does, but the feature doesn't work out for you, propose an enhancement instead.)
  • Zettlr's current features cannot be used to approximate this behaviour (otherwise, propose an enhancement instead.)
  • I have searched the documentation to make sure I did not overlook it.
  • I have searched both open and closed issues to see if someone has already proposed this.

Feature Proposal

When markdown is used in programming projects, they are often (almost always?) hard-wrapped. In such markdown files single line libreaks inside paragraphs are insignificant. Like if you look at an *.md file on GitHub, it will not insert a <br> for those. Same in IDEA products, etc. Also, in such projects, the markdown has to be rewrapped when you save it (if you have modified a paragraph), and hope that everyone respected .editorconfig.

Zettlr currently treats all linebreak as significant. I understand why (it's kind of a semi-source-level editor). So to support editing such markdownd files, I guess, you need a preprocessing step on load (creates a single line from all paragraphs), and the postprocessing when you save (does the hard-wrapping).

Example Workflow

Open files like README.md in software projects, edit them, save them...

Caveats

None, I think... Someone who uses this has to understand that it will recrete the markdown file "source code" purely from its semantics (whatever is significant for typical conversion to HTML).

Do you wish to attempt implementing this yourself?

No

Platforms

  • Windows
  • macOS
  • Linux

Additional Information

No response