struct
Amber::Markdown::Rule::CodeBlock
- Amber::Markdown::Rule::CodeBlock
- Struct
- Value
- Object
Included Modules
Defined in:
amber/markdown/rules/code_block.crConstructors
Class Method Summary
-
.closing_fence_length(text : String) : Int32 | Nil
Returns the length of the closing code fence that starts text, or
nil: three or more backticks or tildes followed only by spaces, up to the end of the text or a final newline. -
.opening_fence_length(text : String) : Int32 | Nil
Returns the length of the opening code fence that starts text, or
nil: three or more backticks with no backtick after them on the line, or three or more tildes.
Instance Method Summary
-
#accepts_lines? : Bool
accepts_line
- #can_contain?(type)
-
#continue(parser : Parser, container : Node) : ContinueStatus
continue
- #initialize
-
#match(parser : Parser, container : Node) : MatchValue
match and parse
-
#token(parser : Parser, container : Node) : Nil
token finalize
Instance methods inherited from module Amber::Markdown::Rule
accepts_lines? : Bool
accepts_lines?,
continue(parser : Parser, container : Node) : ContinueStatus
continue,
match(parser : Parser, container : Node) : MatchValue
match,
token(parser : Parser, container : Node) : Nil
token
Constructor Detail
Class Method Detail
Returns the length of the closing code fence that starts text, or
nil: three or more backticks or tildes followed only by spaces, up to
the end of the text or a final newline.
Returns the length of the opening code fence that starts text, or
nil: three or more backticks with no backtick after them on the line,
or three or more tildes.
Instance Method Detail
continue
match and parse
token finalize