markdown2 $ MdSuperProcessor :: SELF
Type of this instance, automatically specialized in every classmarkdown2 $ MdSuperProcessor :: delimiter_char=
Delimiter charactermarkdown2 $ MdSuperProcessor :: delimiter_use
Determine how many (if any) of the delimiter characters should be usedmarkdown2 $ MdSuperProcessor :: min_length
Minimum number of delimiters characters that are needed to active thiscore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
markdown2 :: MdDelimiterProcessor :: closing_delimiter
The character that marks the ending of a delimited nodecore :: Object :: defaultinit
markdown2 :: MdEmphasisDelimiterProcessor :: delimiter_char
Delimiter charactermarkdown2 :: MdEmphasisDelimiterProcessor :: delimiter_char=
Delimiter charactermarkdown2 :: MdDelimiterProcessor :: delimiter_use
Determine how many (if any) of the delimiter characters should be usedcore :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
markdown2 :: MdDelimiterProcessor :: min_length
Minimum number of delimiters characters that are needed to active thismarkdown2 :: MdDelimiterProcessor :: opening_delimiter
The character that marks the beginning of a delimited nodecore :: Object :: output_class_name
Display class name on stdout (debug only).markdown2 :: MdDelimiterProcessor
Custom delimiter processor for additional delimiters besides_
and *
markdown2 :: MdEmphasisDelimiterProcessor
A processor for emphasis tokens
# Super processor
class MdSuperProcessor
super MdEmphasisDelimiterProcessor
noautoinit
redef var delimiter_char = '^'
redef var min_length = 1
redef fun delimiter_use(opener, closer) do return opener.original_length
redef fun process(opener, closer, delimiter_use) do
var node = new MdSuper(
new MdLocation(
opener.location.line_start,
opener.location.column_start,
closer.location.line_end,
closer.location.column_end),
opening_delimiter.to_s * delimiter_use)
var tmp = opener.next
while tmp != null and tmp != closer do
var next = tmp.next
node.append_child(tmp)
tmp = next
end
opener.insert_after(node)
end
end
lib/markdown2/markdown_github.nit:87,1--112,3