vsch / idea-multimarkdown

Markdown language support for IntelliJ IDEA.
https://plugins.jetbrains.com/plugin/7896-markdown-navigator
Apache License 2.0
812 stars 129 forks source link

soft wrap behavior keeps killing definition lists with line merging #851

Open jshook opened 4 years ago

jshook commented 4 years ago

There doesn't seem to be a coherent set of options for being able to have soft wraps on paragraphs while also being able to simply type in a definition list.

The observed behavior that is causing trouble is this:

  1. You start a definition list like this, and the initial characters of the definition value: (cursor position at >)
    Definition
    : v>
  2. When you type the next couple characters, multimarkdown, merges your definition into a paragraph:
    Definition val>
vsch commented 4 years ago

@jshook, what is the plugin version you are using?

There was an issue with custom elements with prefix would loose the prefix when auto-formatting. This applies to definitions and footnotes,

The issue was fixed in 3.0.xxx.89 EAP release.

EAP update with a fix for the issue is available.

Installing EAP Plugin Version

Please note the change that EAP channel is for JetBrains licensed plugin and Legacy EAP is for legacy licensing by vladsch.com

jshook commented 4 years ago

It is 3.0.197.72

jshook commented 4 years ago

I've confirmed the fix in EAP, but there is also a glitch that I found when "wrap on typing only after space is typed" which might be related. When you use * as italics, wrapping does not allow you to proceed to type a space, it just eats the space when typed.

Anyway, the original issue is addressed.

vsch commented 4 years ago

@jshook, this is caused by having smart edit asterisks enabled, found in Languages & Frameworks | Markdown | Editor. This setting doubles * when first typed. On space it replaces the automatically inserted * and stops further processing of the space which includes paragraph wrapping.

If I can implement this function by deleting the auto inserted *, in which case further space processing can proceed.

I think it should work, in which case I will add this fix to the next release.

jshook commented 4 years ago

Thanks. I disabled the smart edit features for now. Thanks for the prompt follow-ups. Much appreciated!