struct Markd::Rule::CodeBlock

Included Modules

Defined in:

markd/rules/code_block.cr

Constant Summary

CLOSING_CODE_FENCE = /^(?:`{3,}|~{3,})(?= *$)/
CODE_FENCE = /^`{3,}(?!.*`)|^~{3,}(?!.*~)/

Constructors

Instance Method Summary

Instance methods inherited from module Markd::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

def self.new #

[View source]

Instance Method Detail

def accepts_lines? : Bool #
Description copied from module Markd::Rule

accepts_line


[View source]
def can_contain?(type) #

[View source]
def continue(parser : Parser, container : Node) : ContinueStatus #
Description copied from module Markd::Rule

continue


[View source]
def initialize #

[View source]
def match(parser : Parser, container : Node) : MatchValue #
Description copied from module Markd::Rule

match and parse


[View source]
def token(parser : Parser, container : Node) : Nil #
Description copied from module Markd::Rule

token finalize


[View source]