markdown2 :: MdHeadingParser :: block=
markdown2 :: MdHeadingParser :: has_atx_trailing
Heading has ATX trailingmarkdown2 :: MdHeadingParser :: has_atx_trailing=
Heading has ATX trailingmarkdown2 :: MdHeadingParser :: is_setext=
Heading is setext formatmarkdown2 $ MdHeadingParser :: SELF
Type of this instance, automatically specialized in every classmarkdown2 $ MdHeadingParser :: location=
Location at startmarkdown2 $ MdHeadingParser :: parse_inlines
Parse the heading contentmarkdown2 $ MdHeadingParser :: try_continue
Never continue parsing as an heading is a one linermarkdown2 :: MdHeadingParser :: block=
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
markdown2 :: MdBlockParser :: column_start=
Column startmarkdown2 :: MdBlockParser :: content_offset
Column where the content startsmarkdown2 :: MdBlockParser :: content_offset=
Column where the content startscore :: Object :: defaultinit
markdown2 :: MdHeadingParser :: has_atx_trailing
Heading has ATX trailingmarkdown2 :: MdHeadingParser :: has_atx_trailing=
Heading has ATX trailingmarkdown2 :: MdBlockParser :: initialize
Initialize the currentblock
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 :: MdHeadingParser :: is_setext=
Heading is setext formatmarkdown2 :: MdBlockParser :: location=
Location at startcore :: Object :: output_class_name
Display class name on stdout (debug only).markdown2 :: MdBlockParser :: parse_inlines
Parseblock
lines
markdown2 :: MdBlockParser :: try_continue
Canself
continue from the current index
in parser
?
# Headings parser
class MdHeadingParser
super MdBlockParser
redef type BLOCK: MdHeading
redef var block = new MdHeading(location, level, is_setext, has_atx_trailing) is lazy
redef var location = new MdLocation(line_start, column_start, line_end, column_end) is lazy
# Line end
var line_end: Int
# Column end
var column_end: Int
# Heading level
var level: Int
# Heading content
var content: String
# Heading has ATX trailing
var has_atx_trailing: Bool
# Heading is setext format
var is_setext: Bool
# Never continue parsing as an heading is a one liner
redef fun try_continue(state) do return null
# Parse the heading content
redef fun parse_inlines(inline_parser) do
inline_parser.parse(content, content_offset, block)
end
end
lib/markdown2/markdown_block_parsing.nit:623,1--658,3