class
Markd::Options
- Markd::Options
- Reference
- Object
Overview
Markdown rendering options.
Defined in:
markd/options.crConstructors
Instance Method Summary
-
#autolink=(autolink : Bool)
If
true, more autolinks will be detected. -
#autolink? : Bool
If
true, more autolinks will be detected. -
#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. -
#emoji=(emoji : Bool)
Enables GFM emoji support.
-
#emoji? : Bool
Enables GFM emoji support.
-
#gfm : Bool
DEPRECATED Use
#gfm?instead. -
#gfm=(gfm : Bool)
Enables GitHub Flavored Markdown support.
-
#gfm? : Bool
Enables GitHub Flavored Markdown support.
-
#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). -
#tagfilter=(tagfilter : Bool)
If
true, the following HTML tags will be filtered when rendering HTML output: -
#tagfilter? : Bool
If
true, the following HTML tags will be filtered when rendering HTML output: -
#time : Bool
DEPRECATED Use
#time?instead. -
#time=(time : Bool)
Render parsing cost time for reading the source, parsing blocks, and parsing inline.
-
#time? : Bool
Render parsing cost time for reading the source, parsing blocks, and parsing inline.
-
#toc=(toc : Bool)
Not supported for now.
-
#toc? : Bool
Not supported for now.
Constructor Detail
Instance Method Detail
If true, more autolinks will be detected.
Setting to false does not disable autolink support as a whole.
If true, more autolinks will be detected.
Setting to false does not disable autolink support as a whole.
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.
Enables GFM emoji support.
For example:
@octocat :+1: This PR looks great - it's ready to merge! :ship:
Becomes:
@octocat 👍 This PR looks great - it's ready to merge! 🚢
https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#using-emojis
Enables GFM emoji support.
For example:
@octocat :+1: This PR looks great - it's ready to merge! :ship:
Becomes:
@octocat 👍 This PR looks great - it's ready to merge! 🚢
https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#using-emojis
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).
If true, the following HTML tags will be filtered when rendering HTML output:
<title><textarea><style><xmp><iframe><noembed><noframes><script><plaintext>
All other HTML tags are left untouched.
If true, the following HTML tags will be filtered when rendering HTML output:
<title><textarea><style><xmp><iframe><noembed><noframes><script><plaintext>
All other HTML tags are left untouched.
Render parsing cost time for reading the source, parsing blocks, and parsing inline.
Render parsing cost time for reading the source, parsing blocks, and parsing inline.