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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed1c08fd98586b0e12dcb8ccdfde03a6006ced31e6ba71535c681b039d580218
4
- data.tar.gz: 697a89107371a410e9d240d08e55a8901bff9e458ac8a5b06ef481eca326c3d4
3
+ metadata.gz: 68544063b5e2654e4eb5b5914a5d018f262d839413bb75963a0f561276512d91
4
+ data.tar.gz: d86b24ceeef2807a81761991fd947a6e1ea3a96078d10ff2a727f90980f76f5a
5
5
  SHA512:
6
- metadata.gz: bc1b4d6df407f6d34eef7ba932ca4881749141bec6ba6dd93f7368245915690adf4ca04115fb3033907ab1e64fdd20feb60e1ebac2d1ae462770f8028de41d7a
7
- data.tar.gz: 90fca83f5e268fd9b2ee21e2b3910a677aee549d3d98145ba063289b7112d7d07b77f53938b3f351020b04491ad7bebad9233bd895894a46d82809a15cf98b2e
6
+ metadata.gz: e41ecfee502cb4260cfb490e67baa54340db91b2f7131707252b3197115dbfc67462b26a29d55482887932e70227f2e57f0aa84e06f47e0cb1a895bfef3f2c38
7
+ data.tar.gz: 796304503b1a08e69203f53b8a6b8d675a346a12122533e9f8e890608f2f4f60e19fae6f8d2535d4a23a657684dc88d95da0979fb0edd1c523028c2a047644ed
@@ -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!*!"
@@ -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
- Asciidoctor::Extensions.register do
7
- treeprocessor Asciidoctor::Html5s::AttachedColistTreeprocessor
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
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Asciidoctor
2
4
  module Html5s
3
- VERSION = '0.1.0.beta.6'.freeze
5
+ VERSION = '0.1.0.beta.7'
4
6
  end
5
7
  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.6
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-01 00:00:00.000000000 Z
11
+ date: 2018-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor