atom-language-asciidoc icon indicating copy to clipboard operation
atom-language-asciidoc copied to clipboard

Match literal paragraphs

Open mojavelinux opened this issue 9 years ago • 2 comments

Description

The grammar should match literal (i.e., indented) paragraphs. A literal paragraph is a paragraph that begins with one or more spaces. We should only look for spaces at the start of the paragraph, not subsequent lines within the paragraph.

Syntax example

Type the following command:

 $ gem install asciidoctor

Asciidoctor should now be installed on your machine.

The middle line should appear as a literal block. In other words, it's roughly the equivalent of:

Type the following command:

....
$ gem install asciidoctor
....

Asciidoctor should now be installed on your machine.

We might even want to detect literal paragraphs that begin with $ or # followed by a space and highlight them as shell commands. That's just a bonus feature as it's not technically supported in AsciiDoc (yet).

mojavelinux avatar Jun 07 '16 07:06 mojavelinux

I cannot created the bonus with $ or # because the embedded language doesn't work in this context.

ldez avatar Jun 08 '16 19:06 ldez

No worries.

mojavelinux avatar Jun 09 '16 22:06 mojavelinux