commonmarker-rouge 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/commonmarker-rouge.gemspec +1 -1
- data/lib/commonmarker/rouge.rb +2 -2
- data/lib/commonmarker/rouge/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d71f8505f1dabd01cb8c1a45b12242fdcff30882
|
4
|
+
data.tar.gz: a90f9683a0c5248d4e34004d27ab1f6c4b3413ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 534959c54af71b74d50e5fdeddec614141b5a27f35ead5831ad3f3a9e04bf3d4956535e79cb8d7b5c4111925fdc3d922a4748bd3b9b8b9342b6ee646afdc64ee
|
7
|
+
data.tar.gz: d3bab76c5ab5706eceecd6254413d9e3ce3ee65d8a6c4d7daccea14e0b7bca99d0101a1d947564ca834aa1d2b92ea6688f295e3396778b7f47f0c5a88f7327a7
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ CommonMarker::Rouge.render_html(content)
|
|
24
24
|
CommonMarker::Rouge.render_doc(content)
|
25
25
|
|
26
26
|
# pass options to CommonMarker
|
27
|
-
CommonMarker::Rouge.render_html(content, [:
|
27
|
+
CommonMarker::Rouge.render_html(content, [:SAFE, :SOURCEPOS])
|
28
28
|
|
29
29
|
# use custom CommonMarker wrapper (must provide compatible render_doc)
|
30
30
|
CommonMarker::Rouge.render_html(content, cmark_class: CommonMarkerWrapper)
|
data/commonmarker-rouge.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.required_ruby_version = '>= 2.0.0'
|
22
22
|
|
23
|
-
spec.add_dependency 'commonmarker', '
|
23
|
+
spec.add_dependency 'commonmarker', '>= 0.14.5', '< 1.0'
|
24
24
|
spec.add_dependency 'rouge', '~> 1.10'
|
25
25
|
|
26
26
|
spec.add_development_dependency 'bundler', '~> 1.11'
|
data/lib/commonmarker/rouge.rb
CHANGED
@@ -7,7 +7,7 @@ module CommonMarker
|
|
7
7
|
module Rouge
|
8
8
|
module_function
|
9
9
|
|
10
|
-
def render_doc(text, cmark_options = :
|
10
|
+
def render_doc(text, cmark_options = :DEFAULT, **highmark_options)
|
11
11
|
cmark = highmark_options[:cmark_class] || ::CommonMarker
|
12
12
|
|
13
13
|
ast = cmark.render_doc(text, cmark_options)
|
@@ -15,7 +15,7 @@ module CommonMarker
|
|
15
15
|
ast
|
16
16
|
end
|
17
17
|
|
18
|
-
def render_html(text, cmark_options = :
|
18
|
+
def render_html(text, cmark_options = :DEFAULT)
|
19
19
|
render_doc(text, cmark_options).to_html
|
20
20
|
end
|
21
21
|
|
metadata
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commonmarker-rouge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Smirnov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commonmarker
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.14.5
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '1.0'
|
@@ -24,9 +24,9 @@ dependencies:
|
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.14.5
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '1.0'
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
version: '0'
|
140
140
|
requirements: []
|
141
141
|
rubyforge_project:
|
142
|
-
rubygems_version: 2.
|
142
|
+
rubygems_version: 2.6.12
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: CommonMarker wrapper with Rouge syntax highlighter
|