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

Allow additional attributes to be defined on source block #99

Closed ldez closed 8 years ago

ldez commented 8 years ago

capture du 2016-05-08 23-02-55

[source,ruby,subs=attributes+]
----
source 'https://rubygems.org'
gem 'asciidoctor', '{latest-release}'
----

Fix #93

ldez commented 8 years ago

Before: capture du 2016-05-08 23-32-30

After: capture du 2016-05-08 23-30-02

Syntax example


[source]
----
source 'https://rubygems.org'
gem 'asciidoctor', '{latest-release}'
----

[source,fkdsmlmlkf]
----
source 'https://rubygems.org'
gem 'asciidoctor', '{latest-release}'
----

[indent=2]
----
    def names
      @name.split ' '
    end
----

[source,java,subs="{markup-in-source}"]
----
System.out.println("Hello *bold* text").
----

[source,xml,subs="attributes+,+replacements,-callouts"]
----
<version>{version}</version>
<copyright>(C) ACME</copyright>

content in 1 element
</1>
----

[source,ruby,subs=attributes+]
----
source 'https://rubygems.org'
gem 'asciidoctor', '{latest-release}'
----

[source,ruby,linenums]
----
puts "Hello, World!"
----
nicorikken commented 8 years ago

(The paste-able syntax example is a nice touch)

nicorikken commented 8 years ago

Tested, code reviewed, looks good for merge.

mojavelinux commented 8 years ago

:+1: