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).
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
The middle line should appear as a literal block. In other words, it's roughly the equivalent of:
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).