shuzijun / markdown-editor

IntelliJ Platform A full-featured WYSIWYG editor for markdown
https://plugins.jetbrains.com/plugin/17254-markdown-editor
Apache License 2.0
155 stars 35 forks source link

Editor should NOT reformat the entire Markdown file #69

Open vassudanagunta opened 1 year ago

vassudanagunta commented 1 year ago

If i make any small edit using markdown-editor, it will reformat the entire markdown file! This is very bad.

Why is this bad?

Many projects will not be able to use this plugin because of this problem.

Expectations:

  1. Any change to one line should never result in changes to any another line. The only except to this is a change that must change other lines, e.g. increasing the nesting level of a list item will change all items in that list item.

  2. Changes should always be minimal. If I fix a spelling error, only that word should be changed. The containing block should not be reformatted.

  3. Respect the existing formatting. For example, if a list is formatted as a tight list (without blank lines between items), DO NOT insert blank lines between items and change it into a loose list.

  4. Respect IDE settings, such as Editor:General:Remove trailing spaces on and Editor:Code Style:Markdown

shuzijun commented 1 year ago

I can understand this scenario, but limited by lute can not support this scenario.

vassudanagunta commented 1 year ago

Thanks for response!

Can you submit an issue against lute? I would do it, but I don't know the details as you do. You could point to this issue when you submit it.