markdown :: BlockCode :: defaultinit
markdown :: BlockCode :: line_start
Number of char to skip at the beginning of the line.markdown :: BlockCode :: line_start=
Number of char to skip at the beginning of the line.markdown $ BlockCode :: emit_lines
Emit lines contained inblock
.
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
markdown :: BlockCode :: defaultinit
markdown :: Block :: defaultinit
markdown :: Block :: emit_blocks
Emit sub-blocks contained inblock
.
self
, lines or 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.
markdown :: BlockCode :: line_start
Number of char to skip at the beginning of the line.markdown :: BlockCode :: line_start=
Number of char to skip at the beginning of the line.core :: Object :: output_class_name
Display class name on stdout (debug only).markdown :: Block :: raw_content
The raw content of the block as a multi-line string.
# A markdown code block.
class BlockCode
super Block
# Any string found after fence token.
var meta: nullable Text
# Number of char to skip at the beginning of the line.
#
# Block code lines start at 4 spaces.
protected var line_start = 4
redef fun emit(v) do v.decorator.add_code(v, self)
redef fun emit_lines(v) do
var line = block.first_line
while line != null do
if not line.is_empty then
v.decorator.append_code(v, line.value, line_start, line.value.length)
end
v.addn
line = line.next
end
end
end
lib/markdown/markdown.nit:1238,1--1262,3