Extension: math Attribute: html_png_engine Scope: document, element Output: html Summary: Select the rendering engine for math. Default: <mrk Globals[:html_math_engine].to_s > Same thing as %xhtml_math_engine`, only for PNG output. def convert_to_png_foo(kind, tex) # same thing ... end {:lang=ruby}
This code does the classification of lines for block-level parsing.
Example:
*[HTML]: Hyper Text Markup Language
$1 = id $2 = attribute list
Parse block-level markdown elements in these HTML tags
Example:
^:blah blah ^: blah blah ^ : blah blah
%r{
^ # begin of line [ ]{0,3} # up to 3 spaces \* # one asterisk \[ # opening bracket ([^\]]+) # any non-closing bracket: id = $1 \] # closing bracket : # colon \s* # whitespace (\S.*\S)* # definition=$2 \s* # strip this whitespace $ # end of line
}x
%r{
^[ ]{0,3}\[([^\[\]]+)\]: # id = $1 [ ]* <?([^>\s]+)>? # url = $2 [ ]* (?: # Titles are delimited by "quotes" or (parens). (?:(?:"([^"]+)")|(?:'([^']+)')|(?:\(([^\(\)]+)\))) # title = $3, $4, or $5 \s*(.+)? # stuff = $6 )? # title is optional
}x
This regex is taken from BlueCloth sources Link defs are in the form: ^[id]: n? url “optional title”
The URL of the Maruku website.
@deprecated Exists for backwards compatibility. Use {MARUKU_URL} @private
Table syntax: michelf.ca/projects/php-markdown/extra/#table | ————-:| —————————— |
The Maruku version.
@deprecated Exists for backwards compatibility. Use {VERSION} @private
# File lib/maruku/input_textile2/t2_parser.rb, line 88 def self.textile2(source, params) m = Maruku.new m.t2_parse(source, params) end
Whether Markdown implements the PHP Markdown extra syntax.
Note: it is not guaranteed that if this is false, then no special features will be used.
@return [Boolean]
# File lib/maruku/version.rb, line 22 def markdown_extra? true end
Whether Markdown implements the new meta-data proposal.
Note: it is not guaranteed that if this is false, then no special features will be used.
@return [Boolean]
# File lib/maruku/version.rb, line 32 def new_meta_data? true end