module MaRuKu
begin maruku_doc¶ ↑
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 `html_math_engine`, only for PNG output. def convert_to_png_foo(kind, tex) # same thing ... end {:lang=ruby}
end¶ ↑
This code does the classification of lines for block-level parsing.
Constants
- Abbreviation
Example:
*[HTML]: Hyper Text Markup Language
- AttributeDefinitionList
$1 = id $2 = attribute list
- BLOCK_TAGS
Parse block-level markdown elements in these HTML tags
- Definition
Example:
^:blah blah ^: blah blah ^ : blah blah
- EMailAddress
- FootnoteText
%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
- Globals
- HTML_INLINE_ELEMS
- IncompleteLink
%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
- InlineAttributeList
- LinkRegex
This regex is taken from BlueCloth sources Link defs are in the form: ^[id]: n? url “optional title”
- MARUKU_URL
The URL of the Maruku website.
- MarukuURL
@deprecated Exists for backwards compatibility. Use {MARUKU_URL} @private
- S5_Fancy
- S5_external
- TableSeparator
Table syntax: michelf.ca/projects/php-markdown/extra/#table | ————-:| —————————— |
- VERSION
The Maruku version.
- Version
@deprecated Exists for backwards compatibility. Use {VERSION} @private
Public Class Methods
# File lib/maruku/input_textile2/t2_parser.rb, line 88 def self.textile2(source, params) m = Maruku.new m.t2_parse(source, params) end
Public Instance Methods
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