class Markd::Options
- Markd::Options
- Reference
- Object
Overview
Markdown rendering options.
Defined in:
markd/options.crConstructors
Instance Method Summary
-
#base_url : URI | Nil
If
#base_urlis notnil, it is used to resolve URLs of relative links. -
#base_url=(base_url : URI | Nil)
If
#base_urlis notnil, it is used to resolve URLs of relative links. - #gfm : Bool
- #gfm=(gfm : Bool)
-
#prettyprint : Bool
DEPRECATED Use
#prettyprint?instead. -
#prettyprint=(prettyprint : Bool)
If
true, code tags generated by code blocks will have a prettyprint class added to them, to be used by Google code-prettify. -
#prettyprint? : Bool
If
true, code tags generated by code blocks will have a prettyprint class added to them, to be used by Google code-prettify. -
#safe : Bool
DEPRECATED Use
#safe?instead. -
#safe=(safe : Bool)
If
true, raw HTML will not be passed through to HTML output (it will be replaced by comments). -
#safe? : Bool
If
true, raw HTML will not be passed through to HTML output (it will be replaced by comments). -
#smart : Bool
DEPRECATED Use
#smart?instead. -
#smart=(smart : Bool)
If
true: - straight quotes will be made curly ---will be changed to an en dash ----will be changed to an em dash -...will be changed to ellipses -
#smart? : Bool
If
true: - straight quotes will be made curly ---will be changed to an en dash ----will be changed to an em dash -...will be changed to ellipses -
#source_pos : Bool
DEPRECATED Use
#source_pos?instead. -
#source_pos=(source_pos : Bool)
If
true, source position information for block-level elements will be rendered in thedata-sourceposattribute (for HTML). -
#source_pos? : Bool
If
true, source position information for block-level elements will be rendered in thedata-sourceposattribute (for HTML). - #time : Bool
- #time=(time : Bool)
- #toc : Bool
- #toc=(toc : Bool)
Constructor Detail
Instance Method Detail
If #base_url is not nil, it is used to resolve URLs of relative
links. It act's like HTML's <base href="base_url"> in the context
of a Markdown document.
If #base_url is not nil, it is used to resolve URLs of relative
links. It act's like HTML's <base href="base_url"> in the context
of a Markdown document.
If true, code tags generated by code blocks will have a
prettyprint class added to them, to be used by
Google code-prettify.
If true, code tags generated by code blocks will have a
prettyprint class added to them, to be used by
Google code-prettify.
If true, raw HTML will not be passed through to HTML output
(it will be replaced by comments).
If true, raw HTML will not be passed through to HTML output
(it will be replaced by comments).
If true:
- straight quotes will be made curly
--will be changed to an en dash---will be changed to an em dash...will be changed to ellipses
If true:
- straight quotes will be made curly
--will be changed to an en dash---will be changed to an em dash...will be changed to ellipses
If true, source position information for block-level elements
will be rendered in the data-sourcepos attribute (for HTML).
If true, source position information for block-level elements
will be rendered in the data-sourcepos attribute (for HTML).