asciidoctor-html5s 0.1.0.beta.6 → 0.1.0.beta.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +4 -1
- data/lib/asciidoctor/html5s.rb +6 -3
- data/lib/asciidoctor/html5s/version.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68544063b5e2654e4eb5b5914a5d018f262d839413bb75963a0f561276512d91
|
4
|
+
data.tar.gz: d86b24ceeef2807a81761991fd947a6e1ea3a96078d10ff2a727f90980f76f5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e41ecfee502cb4260cfb490e67baa54340db91b2f7131707252b3197115dbfc67462b26a29d55482887932e70227f2e57f0aa84e06f47e0cb1a895bfef3f2c38
|
7
|
+
data.tar.gz: 796304503b1a08e69203f53b8a6b8d675a346a12122533e9f8e890608f2f4f60e19fae6f8d2535d4a23a657684dc88d95da0979fb0edd1c523028c2a047644ed
|
data/README.adoc
CHANGED
@@ -74,7 +74,10 @@ asciidoctor -r {gem-name} -b html5s FILE...
|
|
74
74
|
----
|
75
75
|
// Load asciidoctor.js and {gem-name}.
|
76
76
|
const asciidoctor = require('asciidoctor.js')()
|
77
|
-
require('{gem-name}')
|
77
|
+
const asciidoctorHtml5s = require('{gem-name}')
|
78
|
+
|
79
|
+
// Register the HTML5s converter and supporting extension.
|
80
|
+
asciidoctorHtml5s.register()
|
78
81
|
|
79
82
|
// Convert the content to HTML using html5s converter.
|
80
83
|
const content = "Hello, *world!*!"
|
data/lib/asciidoctor/html5s.rb
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
-
require 'asciidoctor/extensions' unless RUBY_PLATFORM == 'opal'
|
2
1
|
require 'asciidoctor/html5s/version'
|
3
2
|
require 'asciidoctor/html5s/converter'
|
4
3
|
require 'asciidoctor/html5s/attached_colist_treeprocessor'
|
5
4
|
|
6
|
-
|
7
|
-
|
5
|
+
unless RUBY_PLATFORM == 'opal'
|
6
|
+
require 'asciidoctor/extensions'
|
7
|
+
|
8
|
+
Asciidoctor::Extensions.register do
|
9
|
+
treeprocessor Asciidoctor::Html5s::AttachedColistTreeprocessor
|
10
|
+
end
|
8
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-html5s
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.beta.
|
4
|
+
version: 0.1.0.beta.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Jirutka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|