asciidoctor-html5s 0.1.0.beta.10 → 0.1.0.beta.11

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: a9dd49e828ffd4bb710c4d52a5f5bb290b5a3a83a9c5f8914bfc57750445d7c4
4
- data.tar.gz: 9c22dddaab49d8bd4bf19c46431f8682bf0bb7747a568982863818c09df514ac
3
+ metadata.gz: a9072cf9f64b3d874247c3d236eb74ea5373961c1a6d60e6cff310f60365d077
4
+ data.tar.gz: 1f9e5a1e368753ec09b49007f06f0b74785b34db7d4f72061e9f7ca7290f7aa1
5
5
  SHA512:
6
- metadata.gz: 4da3a9fe59f111342e69c30c03852a66a61e48140a81d236fc69201d312858338e3870def8af77bf1b1c2080b21bf957c10742c4b0348526a68af2b2d1ac851b
7
- data.tar.gz: 14111e7154edd3c1cfc12e330133ff5011576f7701b1e9a4e460e4ebb175e539f9c12d9d7e6ea568fe0e35d6fc4ad6c453ef301d44d0e6ec0eec66e494a87c1a
6
+ metadata.gz: 82170204752958af610a625c76fc0fb8f1ce1ac35219b46445f8c0c8dbed8530d07453e7fd7b0bd541ebf10bbb442ec8091c9f47c06fcf56bbbe93294f0edaca
7
+ data.tar.gz: b96df671bc00d7aabeca8eea657d9e6d8b98d5b85d06064513f204fcd9d4895b35ec3574328323a9b2210be0d74b8311ec37b7bff761794582dc441e9812cbf4
@@ -1,15 +1,22 @@
1
1
  require 'asciidoctor' unless RUBY_PLATFORM == 'opal'
2
2
 
3
3
  module Asciidoctor
4
+ # XXX: Regexps escaping is kinda broken in Opal 0.11.x. This is a hack how to
5
+ # make the third regexp work both in Ruby and Opal.
6
+ _BACKSLASH = '\\\\'
7
+
4
8
  # XXX: Modifies constant defined in Asciidoctor.
5
9
  REPLACEMENTS.unshift(
6
10
  # foo --- bar ->  — 
7
- [/(^|\n| |\\)---( |\n|$)/, ' — ', :none],
11
+ [/(^|\n| )---( |\n|$)/, ' — ', :none],
8
12
  # foo---bar -> —{ZERO WIDTH SPACE}
9
- [/(#{CG_WORD})\\?---(?=#{CG_WORD})/, '—​', :leading],
13
+ [/(#{CG_WORD})---(?=#{CG_WORD})/, '—​', :leading],
14
+
10
15
  # foo -- bar -> &thinksp;– 
11
- [/(^|\n| |\\)--( |\n|$)/, ' – ', :none],
16
+ # Note: The regexp is copied from Asciidoctor.
17
+ [/(^|\n|#{_BACKSLASH}| )--( |\n|$)/, ' – ', :none],
12
18
  # foo--bar -> –
19
+ # Note: The regexp is copied from Asciidoctor.
13
20
  [/(#{CG_WORD})\\?--(?=#{CG_WORD})/, '–', :leading],
14
21
  )
15
22
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Asciidoctor
4
4
  module Html5s
5
- VERSION = '0.1.0.beta.10'
5
+ VERSION = '0.1.0.beta.11'
6
6
  end
7
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.10
4
+ version: 0.1.0.beta.11
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-10-20 00:00:00.000000000 Z
11
+ date: 2018-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor