markdown2 :: MdBlock :: can_contain
Can this block containblock
?
markdown2 :: MdBlock :: defaultinit
markdown2 :: MdBlock :: is_container=
Can this block contain other blocks?markdown2 :: MdBlock :: can_contain
Can this block containblock
?
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
markdown2 :: MdBlock :: defaultinit
core :: Object :: defaultinit
markdown2 :: MdNode :: defaultinit
markdown2 :: MdBlock :: is_container=
Can this block contain other blocks?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.
markdown2 :: MdNode :: location=
Node location in original markdowncore :: Object :: output_class_name
Display class name on stdout (debug only).markdown2 :: MdNode :: post_process
Accept the visit of aMdPostProcessor
markdown2 :: MdNode :: render_raw_text
Renderself
as raw text
# An abstract markdown block
abstract class MdBlock
super MdNode
redef fun parent do return super
# Can this block contain other blocks?
var is_container = false
# Can this block contain `block`?
fun can_contain(block: MdBlock): Bool do return false
# Parents of blocks can only be blocks
redef fun parent=(node) do
assert parent == null or parent isa MdBlock else
print "Parent of block must also be block."
end
super(node)
end
end
lib/markdown2/markdown_ast.nit:184,1--203,3