If true, inline xml tags and verbatim xml blocks are allowed, otherwise they are escaped and included as plain text
used to print the end of a blockquote, defaults to "\n"
used to print the end of a blockquote, defaults to "\n"
used to print the beginning of a blockquote, defaults to "
"
used to print the beginning of a blockquote, defaults to "
"
used to print out manual line breaks (default:
)
used to print out inline code (default: ...
)
used to print out inline code (default: ...
)
used to print the end of a code block, defaults to " \n" used to print the end of a code block, defaults to "
used to print the end of a code block, defaults to " \n" used to print the end of a code block, defaults to "
used to print the beginning of a code block, defaults to "
"
used to print the beginning of a code block, defaults to "
"
used to print out emphasized text (default ...)
used to print out emphasized text (default ...)
used to print the end of a header, defaults to "</h[headerNo]\n>"
used to print the beginning of a header, defaults to "<h[headerNo]>"
Used to print image elements (default: <img .
Used to print image elements (default: <img ...)
used to print the end of a list item, defaults to ""
used to print the beginning of a list item, defaults to "
used to print the beginning of a list item, defaults to "
Used to print link elements (default: <a href.
Used to print link elements (default: <a href...)
used to print the end of an ordered list, defaults to \n
used to print the beginning of an ordered list, defaults to \n
used to print the end of a paragraph, defaults to "\n"
used to print the beginning of a paragraph, defaults to "
used to print the beginning of a paragraph, defaults to "
"
used to print a horizontal ruler defaults to "
used to print a horizontal ruler defaults to "
Used to print out strong text (default: ...
Used to print out strong text (default: ...
used to print the end of an unordered list, defaults to "\n"
used to print the beginning of an unordered list, defaults to "\n"
The string used to ident one level.
The string used to ident one level. Defaults to the empty string
This trait influences the behavior of the Markdown output of inline and block parsers and the complete transformer. Mix in this trait and override methods to change the behavior and override the "deco()" method in the respective parser/transformer to return your modified instances to change the output they create.
Inline element decoration methods always get passed the spanned text, so you have to prepend and append the opening/closing tags. For block elements there is always a method for the opening and closing tags. This is to make block processing more efficient to prevent unnecessary String building of whole blocks just to add tags. (The block building uses a StringBuilder internally and just appends the returned tags)
If you want line breaks after opening/closing block level tags, you have to add the newline yourself.