markdown :: LineHeadline1 :: defaultinit
markdown $ LineHeadline1 :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
markdown :: Line :: defaultinit
markdown :: LineHeadline :: defaultinit
markdown :: LineHeadline1 :: defaultinit
core :: Object :: defaultinit
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 :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).
# A markdown headline of level 1.
class LineHeadline1
super LineHeadline
redef fun process(v) do
var line = v.current_line
if line == null then return
var current_block = v.current_block.as(not null)
var lprev = line.prev
if lprev != null then current_block.split(lprev)
line.next.as(not null).clear
var block = current_block.split(line)
var kind = new BlockHeadline(block)
kind.depth = 1
kind.transform_headline(block)
block.kind = kind
current_block.remove_leading_empty_lines
v.current_line = current_block.first_line
end
end
lib/markdown/markdown.nit:1844,1--1863,3