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

feat: sidebar, example, literal paragraphs #158

Closed ldez closed 8 years ago

ldez commented 8 years ago

Description

Fix #157

Syntax example

Literal paragraph

[literal]
....
Daleks EXTERMINATE in monospace!
....
foo

[literal]
--
Daleks EXTERMINATE in monospace!
--
foo

[literal]
Daleks EXTERMINATE in monospace!

Sidebar paragraph

[sidebar]
****
A multi-line *sidebar*.
****
foo

[sidebar]
--
A multi-line *sidebar*.
--
foo

[sidebar]
A multi-line *sidebar*.

Example paragraph

[example]
====
A multi-line *example*.
====
foobar

[example]
--
A multi-line *example*.
--
foobar

[example]
A example *paragraph*

Screenshots

Literal paragraph capture du 2016-06-09 21-06-04

Sidebar paragraph capture du 2016-06-09 21-06-19

Example paragraph capture du 2016-06-09 21-06-30

mojavelinux commented 8 years ago

Most excellent!

Only one small thing. You can have a listing and source paragraph too.

[listing]
$ gem install asciidoctor

[source,ruby]
puts "hi"
ldez commented 8 years ago

Source paragraph already exists but I cannot use embedded code style in this case.

mojavelinux commented 8 years ago

I'm not too concerned about source paragraph. In fact, I kind of think of that as a bad practice. It's best to enclose the source code. A listing paragraph, that could go either way. I'm still inclined to recommend against using it.

ldez commented 8 years ago

done:

[listing]
--
an open block listing.
--
foo

[listing]
a listing paragraph

foo

capture du 2016-06-10 00-27-08