asciidoctor 2.0.7 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +37 -3
- data/LICENSE +2 -1
- data/README-de.adoc +3 -3
- data/README-fr.adoc +3 -3
- data/README-jp.adoc +3 -3
- data/README-zh_CN.adoc +3 -3
- data/README.adoc +6 -4
- data/asciidoctor.gemspec +1 -1
- data/data/stylesheets/asciidoctor-default.css +5 -5
- data/lib/asciidoctor.rb +54 -782
- data/lib/asciidoctor/abstract_block.rb +4 -3
- data/lib/asciidoctor/abstract_node.rb +3 -7
- data/lib/asciidoctor/converter.rb +1 -1
- data/lib/asciidoctor/converter/docbook5.rb +6 -18
- data/lib/asciidoctor/converter/html5.rb +9 -3
- data/lib/asciidoctor/converter/manpage.rb +1 -1
- data/lib/asciidoctor/converter/template.rb +3 -3
- data/lib/asciidoctor/extensions.rb +1 -1
- data/lib/asciidoctor/helpers.rb +23 -32
- data/lib/asciidoctor/path_resolver.rb +21 -13
- data/lib/asciidoctor/rx.rb +720 -0
- data/lib/asciidoctor/syntax_highlighter.rb +7 -1
- data/lib/asciidoctor/version.rb +1 -1
- data/man/asciidoctor.1 +4 -4
- data/man/asciidoctor.adoc +2 -1
- metadata +3 -2
@@ -100,15 +100,21 @@ module SyntaxHighlighter
|
|
100
100
|
module Config
|
101
101
|
# Public: Statically register the current class in the registry for the specified names.
|
102
102
|
#
|
103
|
+
# names - one or more String or Symbol names with which to register the current class as a syntax highlighter
|
104
|
+
# implementation. Symbol arguments are coerced to Strings.
|
105
|
+
#
|
103
106
|
# Returns nothing.
|
104
107
|
def register_for *names
|
105
|
-
SyntaxHighlighter.register self, *names
|
108
|
+
SyntaxHighlighter.register self, *(names.map {|name| name.to_s })
|
106
109
|
end
|
107
110
|
end
|
108
111
|
|
109
112
|
module Factory
|
110
113
|
# Public: Associates the syntax highlighter class or object with the specified names.
|
111
114
|
#
|
115
|
+
# syntax_highlighter - the syntax highlighter implementation to register
|
116
|
+
# names - one or more String names with which to register this syntax highlighter implementation.
|
117
|
+
#
|
112
118
|
# Returns nothing.
|
113
119
|
def register syntax_highlighter, *names
|
114
120
|
names.each {|name| registry[name] = syntax_highlighter }
|
data/lib/asciidoctor/version.rb
CHANGED
data/man/asciidoctor.1
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
'\" t
|
2
2
|
.\" Title: asciidoctor
|
3
3
|
.\" Author: Dan Allen, Sarah White, Ryan Waldron
|
4
|
-
.\" Generator: Asciidoctor 2.0.
|
5
|
-
.\" Date: 2019-04-
|
4
|
+
.\" Generator: Asciidoctor 2.0.8
|
5
|
+
.\" Date: 2019-04-22
|
6
6
|
.\" Manual: Asciidoctor Manual
|
7
|
-
.\" Source: Asciidoctor 2.0.
|
7
|
+
.\" Source: Asciidoctor 2.0.8
|
8
8
|
.\" Language: English
|
9
9
|
.\"
|
10
|
-
.TH "ASCIIDOCTOR" "1" "2019-04-
|
10
|
+
.TH "ASCIIDOCTOR" "1" "2019-04-22" "Asciidoctor 2.0.8" "Asciidoctor Manual"
|
11
11
|
.ie \n(.g .ds Aq \(aq
|
12
12
|
.el .ds Aq '
|
13
13
|
.ss \n[.ss] 0
|
data/man/asciidoctor.adoc
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Allen
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date:
|
16
|
+
date: 2018-03-20 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: asciimath
|
@@ -284,6 +284,7 @@ files:
|
|
284
284
|
- lib/asciidoctor/path_resolver.rb
|
285
285
|
- lib/asciidoctor/reader.rb
|
286
286
|
- lib/asciidoctor/rouge_ext.rb
|
287
|
+
- lib/asciidoctor/rx.rb
|
287
288
|
- lib/asciidoctor/section.rb
|
288
289
|
- lib/asciidoctor/stylesheets.rb
|
289
290
|
- lib/asciidoctor/substitutors.rb
|