Sha256: 253507cbd4e2a9b35a7c70649729afed03a659f8a229100b123a532cb3ebeedc

Contents?: true

Size: 346 Bytes

Versions: 17

Compression:

Stored size: 346 Bytes

Contents

require 'asciidoctor'
require 'asciidoctor/extensions'
require 'htmlentities'

# Map HTML entties to their unicode equivalents
# before running LaTeX
#
module Asciidoctor::LaTeX
  class EntToUni < Asciidoctor::Extensions::Postprocessor

    def process document, output
      coder = HTMLEntities.new
      coder.decode output
    end

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
asciidoctor-latex-1.5.0.17.dev lib/asciidoctor/latex/ent_to_uni.rb
asciidoctor-latex-1.5.0.16.dev lib/asciidoctor/latex/ent_to_uni.rb
asciidoctor-latex-1.5.0.15.dev lib/asciidoctor/latex/ent_to_uni.rb
asciidoctor-latex-1.5.0.14.dev lib/asciidoctor/latex/ent_to_uni.rb
asciidoctor-latex-1.5.0.13.dev lib/asciidoctor/latex/ent_to_uni.rb
asciidoctor-latex-1.5.0.12.dev lib/asciidoctor/latex/ent_to_uni.rb
asciidoctor-latex-1.5.0.11.dev lib/asciidoctor/latex/ent_to_uni.rb
asciidoctor-latex-1.5.0.10.dev lib/asciidoctor/latex/ent_to_uni.rb
asciidoctor-latex-1.5.0.9.dev lib/asciidoctor/latex/ent_to_uni.rb
asciidoctor-latex-1.5.0.8b.dev lib/asciidoctor/latex/ent_to_uni.rb
asciidoctor-latex-1.5.0.7.dev lib/asciidoctor/latex/ent_to_uni.rb
asciidoctor-latex-1.5.0.5.dev lib/asciidoctor/latex/ent_to_uni.rb
asciidoctor-latex-1.5.0.4.dev lib/asciidoctor/latex/ent_to_uni.rb
asciidoctor-latex-1.5.0.3.dev lib/asciidoctor/latex/ent_to_uni.rb
asciidoctor-latex-1.5.0.2.dev lib/asciidoctor/latex/ent_to_uni.rb
asciidoctor-latex-1.5.0.1.dev lib/asciidoctor/latex/ent_to_uni.rb
asciidoctor-latex-1.5.0.dev lib/asciidoctor/latex/ent_to_uni.rb