Skip to content

class Crystal::Doc::Markdown::DocRenderer
inherits Crystal::Doc::Markdown::HTMLRenderer

Class methods

.new(obj : Constant | Macro | Method, io)

View source

.new(type : Crystal::Doc::Type, io)

View source

Methods

#begin_code(language = nil)

View source

#begin_inline_code

For inline code we search if there's a method with that name in the current type (it's usual to refer to these as method).

If there is a match, we output the link without the <code>...</code> tag (looks better). If there isn't a match, we want to preserve the code tag.

View source

#begin_link(url)

View source

#end_code

View source

#end_inline_code

View source
View source

#expand_code_links(text : String) : String

View source

#lookup_method(type, name, args, kind = nil)

View source

#method_link(method, text)

View source

#text(text)

View source

#type_link(type, text)

View source