markdown $ TestBlockDecorator :: SELF
Type of this instance, automatically specialized in every classmarkdown $ TestBlockDecorator :: add_blockquote
Render a blockquote.markdown $ TestBlockDecorator :: add_headline
Render a headline block with corresponding level.markdown $ TestBlockDecorator :: add_listitem
Render a list item.markdown :: Decorator :: add_blockquote
Render a blockquote.markdown :: Decorator :: add_headline
Render a headline block with corresponding level.markdown :: Decorator :: add_line_break
Render a line breakmarkdown :: Decorator :: add_listitem
Render a list item.markdown :: Decorator :: add_orderedlist
Render an ordered list.markdown :: Decorator :: add_paragraph
Render a paragraph block.markdown :: Decorator :: add_span_code
Render a code span reading from a buffer.markdown :: Decorator :: add_strike
Render a strike text.markdown :: Decorator :: add_strong
Render a strong text.markdown :: Decorator :: add_unorderedlist
Render an unordered list.markdown :: Decorator :: add_wikilink
Renders a[[wikilink]]
item.
markdown :: Decorator :: append_code
Render code text from buffer and escape it.markdown :: Decorator :: append_value
Render a text and escape it.core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
markdown :: Decorator :: defaultinit
markdown :: HTMLDecorator :: defaultinit
markdown :: Decorator :: escape_char
Render a character escape.markdown :: HTMLDecorator :: headlines=
core :: 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.
core :: Object :: output_class_name
Display class name on stdout (debug only).
class TestBlockDecorator
super HTMLDecorator
var stack: Array[String]
redef fun add_headline(v, block) do
super
check_res(block)
end
redef fun add_listitem(v, block) do
super
check_res(block)
end
redef fun add_blockquote(v, block) do
super
check_res(block)
end
redef fun add_code(v, block) do
super
check_res(block)
end
fun check_res(block: Block) do
var res = "{block.class_name}: {block.block.location}"
var exp = stack.shift
assert res == exp
end
end
lib/markdown/test_markdown.nit:2887,1--2917,3