knadh / listmonk

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
https://listmonk.app
GNU Affero General Public License v3.0
14.68k stars 1.34k forks source link

Markdown editor lacks syntax highlighting #2058

Open olib14 opened 6 hours ago

olib14 commented 6 hours ago

Simply, the the Markdown editor does not have syntax highlighting. The Raw HTML editor already has it, and Rich text/Plain text do not require it.

image

The right window, KWrite, supports syntax highlighting for a variety of markdown features, such as raw HTML.

olib14 commented 5 hours ago

Additionally, it would be good if the editor supported breaking things whilst retaining indentation - this helps to structure the text and make editing more pleasant:

image

The "Product" section is all a single line with one level of indentation (two spaces, as four denotes code blocks). In the current markdown editor, the text spills with no consideration for indentation.

This is also quite useful for bullet-point lists.

knadh commented 13 minutes ago

@Bowrna would you like to explore this? listmonk uses @kazzkiq/CodeFlask for HTML syntax highlighting. It has support form Markdown as well I think.