/usr/lib/ruby/vendor_ruby/maruku/defaults.rb is in ruby-maruku 0.7.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | module MaRuKu
Globals = {
:unsafe_features => false,
:on_error => :warning,
:use_numbered_headers => false,
:maruku_signature => false,
:code_background_color => '#fef',
:code_show_spaces => false,
:filter_html => false,
:html_parser => 'rexml', # or 'nokogiri'
:html_math_output_mathml => true, # also set :html_math_engine
:html_math_engine => 'none', # none, ritex, itex2mml, blahtex
:html_math_output_png => false,
:html_png_engine => 'none',
:html_png_dir => 'pngs',
:html_png_url => 'pngs/',
:html_png_resolution => 200,
:fenced_code_blocks => false,
:html_use_syntax => false,
:latex_use_listings => false,
:latex_cjk => false,
:debug_keep_ials => false,
:doc_prefix => '',
:ignore_wikilinks => true
}
class MDElement
def get_setting(sym)
return attributes[sym] if attributes.has_key?(sym)
return doc.attributes[sym] if doc && doc.attributes.has_key?(sym)
return MaRuKu::Globals[sym] if MaRuKu::Globals.has_key?(sym)
$stderr.puts "Bug: no default for #{sym.inspect}"
nil
end
end
end
|