markdown2 :: MdParagraph :: defaultinit
markdown2 :: MdParagraph :: is_in_tight_list
Is this paragraph in a tight list?markdown2 $ MdParagraph :: SELF
Type of this instance, automatically specialized in every classmarkdown2 :: markdown_html_rendering $ MdParagraph :: render_html
Renderself
as HTML
markdown2 :: markdown_latex_rendering $ MdParagraph :: render_latex
Renderself
as HTML
markdown2 :: markdown_man_rendering $ MdParagraph :: render_man
Renderself
as Manpage format
markdown2 :: markdown_md_rendering $ MdParagraph :: render_md
Renderself
as Markdown
markdown2 :: MdBlock :: can_contain
Can this block containblock
?
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
markdown2 :: MdBlock :: defaultinit
markdown2 :: MdNode :: defaultinit
markdown2 :: MdParagraph :: defaultinit
markdown2 :: MdBlock :: is_container=
Can this block contain other blocks?markdown2 :: MdParagraph :: is_in_tight_list
Is this paragraph in a tight list?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
# A paragraph block
class MdParagraph
super MdBlock
# Is this paragraph in a list?
fun is_in_list: Bool do
var parent = self.parent
return parent != null and parent.parent isa MdListBlock
end
# Is this paragraph in a tight list?
fun is_in_tight_list: Bool do
var parent = self.parent
if parent == null then return false
var gramps = parent.parent
return gramps isa MdListBlock and gramps.is_tight
end
end
lib/markdown2/markdown_ast.nit:334,1--351,3
redef class MdParagraph
redef fun render_latex(v) do
v.add_indent
visit_all(v)
v.add_line
end
end
lib/markdown2/markdown_latex_rendering.nit:302,1--308,3
redef class MdParagraph
redef fun render_man(v) do
var in_list = is_in_list
if not in_list then
v.add_line
end
visit_all(v)
if not in_list then
v.add_line
end
end
end
lib/markdown2/markdown_man_rendering.nit:149,1--160,3
redef class MdParagraph
redef fun render_md(v) do
if not parent isa MdBlockQuote and not parent isa MdListItem or prev != null then
v.add_indent
end
# if parent isa MdBlockQuote then
# v.add_raw "> "
# var node = first_child
# while node != null do
# v.enter_visit(node)
# if node isa MdSoftLineBreak or node isa MdHardLineBreak then
# v.add_raw "> "
# end
# node = node.next
# end
# v.add_line
# return
# end
visit_all(v)
v.add_line
end
end
lib/markdown2/markdown_md_rendering.nit:221,1--242,3