Module: MaRuKu

Included in:
MDElement
Defined in:
lib/amp-front/third_party/maruku.rb,
lib/amp-front/third_party/maruku/toc.rb,
lib/amp-front/third_party/maruku/helpers.rb,
lib/amp-front/third_party/maruku/helpers.rb,
lib/amp-front/third_party/maruku/version.rb,
lib/amp-front/third_party/maruku/defaults.rb,
lib/amp-front/third_party/maruku/attributes.rb,
lib/amp-front/third_party/maruku/attributes.rb,
lib/amp-front/third_party/maruku/structures.rb,
lib/amp-front/third_party/maruku/output/to_s.rb,
lib/amp-front/third_party/maruku/string_utils.rb,
lib/amp-front/third_party/maruku/output/to_ansi.rb,
lib/amp-front/third_party/maruku/output/to_ansi.rb,
lib/amp-front/third_party/maruku/output/to_html.rb,
lib/amp-front/third_party/maruku/input/parse_doc.rb,
lib/amp-front/third_party/maruku/input/rubypants.rb,
lib/amp-front/third_party/maruku/input/charsource.rb,
lib/amp-front/third_party/maruku/input/extensions.rb,
lib/amp-front/third_party/maruku/input/linesource.rb,
lib/amp-front/third_party/maruku/errors_management.rb,
lib/amp-front/third_party/maruku/input/html_helper.rb,
lib/amp-front/third_party/maruku/input/parse_block.rb,
lib/amp-front/third_party/maruku/output/to_markdown.rb,
lib/amp-front/third_party/maruku/output/to_markdown.rb,
lib/amp-front/third_party/maruku/structures_inspect.rb,
lib/amp-front/third_party/maruku/input/type_detection.rb,
lib/amp-front/third_party/maruku/structures_iterators.rb,
lib/amp-front/third_party/maruku/input/parse_span_better.rb,
lib/amp-front/third_party/maruku/input_textile2/t2_parser.rb

Overview

This code does the classification of lines for block-level parsing.

Defined Under Namespace

Modules: Errors, Helpers, In, Out, Strings Classes: AttributeList, Exception, MDDocument, MDElement, Section

Constant Summary collapse

Version =
'0.6.0'
MarukuURL =
'http://maruku.rubyforge.org/'
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_math_output_mathml => true, # also set :html_math_engine
	:html_math_engine => 'none', #ritex, itex2mml
	
	:html_math_output_png => false, 	
	:html_png_engine => 'none',
	:html_png_dir => 'pngs',
	:html_png_url => 'pngs/',
	:html_png_resolution => 200,
  
	:html_use_syntax => false,
	
	:latex_use_listings => false,
	:latex_cjk => false,
  :latex_cache_file  => "blahtex_cache.pstore", # cache file for blahtex filter
	
	:debug_keep_ials => false,
	:doc_prefix => ''
}
MagicChar =
':'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.textile2(source, params) ⇒ Object



88
89
90
91
# File 'lib/amp-front/third_party/maruku/input_textile2/t2_parser.rb', line 88

def self.textile2(source, params)
	m = Maruku.new
	m.t2_parse(source, params)
end

Instance Method Details

#markdown_extra?Boolean

If true, use also PHP Markdown extra syntax

Note: it is not guaranteed that if it’s false then no special features will be used.

So please, ignore it for now.

Returns:

  • (Boolean)


32
33
34
# File 'lib/amp-front/third_party/maruku/version.rb', line 32

def markdown_extra?
	true
end

#new_meta_data?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/amp-front/third_party/maruku/version.rb', line 36

def new_meta_data?
	true
end