lib/asciidoctor/converter/template.rb in asciidoctor-2.0.18 vs lib/asciidoctor/converter/template.rb in asciidoctor-2.0.19
- old
+ new
@@ -27,11 +27,11 @@
class Converter::TemplateConverter < Converter::Base
DEFAULT_ENGINE_OPTIONS = {
erb: { trim: 0 },
# TODO line 466 of haml/compiler.rb sorts the attributes; file an issue to make this configurable
# NOTE AsciiDoc syntax expects HTML/XML output to use double quotes around attribute values
- haml: { format: :xhtml, attr_wrapper: '"', escape_attrs: false, ugly: true },
+ haml: { format: :xhtml, attr_wrapper: '"', escape_html: false, escape_attrs: false, ugly: true },
slim: { disable_escape: true, sort_attrs: false, pretty: false },
}
begin
require 'concurrent/map' unless defined? ::Concurrent::Map
@@ -225,9 +225,10 @@
when :haml
unless @active_engines[extsym]
Helpers.require_library 'haml' unless defined? ::Haml::Engine
# NOTE Haml 5 dropped support for pretty printing
@engine_options[extsym].delete :ugly if defined? ::Haml::TempleEngine
+ @engine_options[extsym][:attr_quote] = @engine_options[extsym].delete :attr_wrapper unless defined? ::Haml::Options
@active_engines[extsym] = true
end
when :erb
template_class, extra_engine_options = (@active_engines[extsym] ||= (load_eruby @eruby))
when :rb