retext-project/retext

Ability to make new line without slash

Closed this issue · 2 comments

I want it to be as it was did in Obsidian. Currently ReText can't into that.
https://github.com/user-attachments/assets/b8fc5814-bbb9-4be6-99e6-69346250f9d9

ReText follows the Markdown specification by default, which says that:

When you do want to insert a <br /> break tag using Markdown, you end a line with two or more spaces, then type return.

But there is a built-in extension called nl2br which changes that behavior and converts all new lines to breaks. For example, you can add <!-- Required extensions: nl2br --> on top of your file. See the Markdown extensions wiki page for more ways to enable extensions.

Thanks, added nl2br to $HOME/.config/markdown-extensions.txt and now it works as expected.