asciidoctor / atom-language-asciidoc

⚛ AsciiDoc language package for the Atom editor.
https://atom.io/packages/language-asciidoc
MIT License
42 stars 20 forks source link

Prevent atom's reflow selection from breaking markup #167

Open mattpalermo opened 7 years ago

mattpalermo commented 7 years ago

Description

I have a feature request. It would be very useful to have atom's reflow selection feature be made aware of the asciidoctor (and asciidoctor-latex) markup such that it doesn't break any markup.

For example, if I have the following list:

. Apples
. Oranges
. Chocolate

and apply the reflow selection command, I get:

. Apples . Oranges . Chocolate

Which is not helpful. Another example for the asciidoctor-latex markup is inline equations. The reflow feature will break inline equations marked up with the $...$ syntax as allowed by asciidoctor-latex. A line break in one of these inline equations seems to prevent proper parsing of the markup.

I understand this may not be a high priority but this would be a great feature to improve writing efficiency. I would love to hear your suggestions about this.