markdown :: BlockQuote :: defaultinit
markdown $ BlockQuote :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
markdown :: Block :: defaultinit
markdown :: BlockQuote :: defaultinit
core :: Object :: 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.
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 blockquote.
class BlockQuote
super Block
redef fun emit(v) do v.decorator.add_blockquote(v, self)
# Remove blockquote markers.
private fun remove_block_quote_prefix(block: MDBlock) do
var line = block.first_line
while line != null do
if not line.is_empty then
if line.value[line.leading] == '>' then
var rem = line.leading + 1
if line.leading + 1 < line.value.length and
line.value[line.leading + 1] == ' ' then
rem += 1
end
line.value = line.value.substring_from(rem)
line.leading = line.process_leading
end
end
line = line.next
end
end
end
lib/markdown/markdown.nit:1212,1--1236,3