Sha256: dcee59cf4ba570d63c89d2b84986998587ae8ccbac382020996a3a7f6fe87257
Contents?: true
Size: 576 Bytes
Versions: 1
Compression:
Stored size: 576 Bytes
Contents
require 'asciidoctor' unless RUBY_PLATFORM == 'opal' module Asciidoctor # XXX: Modifies constant defined in Asciidoctor. REPLACEMENTS.unshift( # foo --- bar ->  —  [/(^|\n| |\\)---( |\n|$)/, ' — ', :none], # foo---bar -> —{ZERO WIDTH SPACE} [/(#{CG_WORD})\\?---(?=#{CG_WORD})/, '—​', :leading], # foo -- bar -> &thinksp;–  [/(^|\n| |\\)--( |\n|$)/, ' – ', :none], # foo--bar -> – [/(#{CG_WORD})\\?--(?=#{CG_WORD})/, '–', :leading], ) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-html5s-0.1.0.beta.10 | lib/asciidoctor/html5s/replacements.rb |