Sha256: f298a8456b14c1d797eda7d5c2a9d10d3a5bc9aa9123b66ba194022339938207
Contents?: true
Size: 644 Bytes
Versions: 17
Compression:
Stored size: 644 Bytes
Contents
require 'asciidoctor' require 'asciidoctor/extensions' # a postprocessor to map the nonsense # string 'DOLLOD' back to '$' # # This is used for the HTML backend # in conjunction with the code # in 'tex_preprocessor' which maps '\$' to # 'DOLLOD' # # There should be a better solution to the # vexing proble of dealing with both $ ... $ # for mathematics and '\$' for currency. But # this works and wil have to do for now. # # @jirutka: Advice? # module Asciidoctor::LaTeX # Map DOLLOD to $ class Dollar < Asciidoctor::Extensions::Postprocessor def process document, output output = output.gsub('DOLLOD', '$') end end end
Version data entries
17 entries across 17 versions & 1 rubygems