Skip to content

class Crystal::Doc::Markdown::Parser
inherits Reference

Class methods

.new(text : String, renderer : Renderer)

View source

Methods

#append_double_newline_if_has_more

View source

#check_link(str, pos, bytesize)

View source

#classify(line)

View source

#code_fence?(line)

View source

#count_pounds(line)

View source

#empty?(line)

View source

#has_closing?(char, count, str, pos, bytesize)

View source

#has_code_spaces?(line)

View source

#horizontal_rule?(line)

View source

#join_next_lines(continue_on = :none, stop_on = :none)

Join this line with next lines if they form a paragraph, until next lines don't start another entity like a list, header, etc.

View source

#line_is_all?(line, char)

View source

#newline

View source

#next_line_is_all?(char)

View source

#next_line_is_not_intended?

View source

#next_lines_empty_of_code?

View source

#parse

View source

#previous_line_is_not_intended_and_starts_with_bullet_list_marker?(prefix)

View source

#process_line(line)

View source

#process_paragraph

View source

#render_code

View source

#render_fenced_code(language : String)

View source

#render_header(level : Int32, line : String, increment : Int32)

View source

#render_horizontal_rule

View source

#render_ordered_list

View source

#render_paragraph

View source

#render_prefix_header(level, line)

View source

#render_quote

View source

#render_unordered_list(prefix = '*')

View source

#starts_with_bullet_list_marker?(line, prefix = nil)

View source

#starts_with_digits_dot?(line)

View source