trait Decorator extends AnyRef
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.
- Alphabetic
- By Inheritance
- Decorator
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def allowVerbatimXml(): Boolean
If true, inline xml tags and verbatim xml blocks are allowed, otherwise they are escaped and included as plain text
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def decorateBlockQuoteClose(): String
used to print the end of a blockquote, defaults to "\n"
- def decorateBlockQuoteOpen(): String
used to print the beginning of a blockquote, defaults to "
"
used to print the beginning of a blockquote, defaults to "
"
- def decorateBreak(): String
used to print out manual line breaks (default:
) - def decorateCode(code: String): String
used to print out inline code (default:
...) - def decorateCodeBlockClose(): String
used to print the end of a code block, defaults to " \n" used to print the end of a code block, defaults to "
- def decorateCodeBlockOpen(): String
used to print the beginning of a code block, defaults to "
"used to print the beginning of a code block, defaults to "
" - def decorateEmphasis(text: String): String
used to print out emphasized text (default ...)
- def decorateHeaderClose(headerNo: Int): String
used to print the end of a header, defaults to "</h[headerNo]\n>"
- def decorateHeaderOpen(headerNo: Int): String
used to print the beginning of a header, defaults to "<h[headerNo]>"
- def decorateImg(alt: String, src: String, title: Option[String]): String
Used to print image elements (default: <img ...)
- def decorateItemClose(): String
used to print the end of a list item, defaults to ""
- def decorateItemOpen(): String
used to print the beginning of a list item, defaults to "
used to print the beginning of a list item, defaults to "
- "
- def decorateLink(text: String, url: String, title: Option[String]): String
Used to print link elements (default: <a href...)
- def decorateOListClose(): String
used to print the end of an ordered list, defaults to \n
- def decorateOListOpen(): String
used to print the beginning of an ordered list, defaults to \n
- def decorateParagraphClose(): String
used to print the end of a paragraph, defaults to "\n"
- def decorateParagraphOpen(): String
used to print the beginning of a paragraph, defaults to "
used to print the beginning of a paragraph, defaults to "
"
- def decorateRuler(): String
used to print a horizontal ruler defaults to "
\n"used to print a horizontal ruler defaults to "
\n" - def decorateStrong(text: String): String
Used to print out strong text (default: ...
- def decorateUListClose(): String
used to print the end of an unordered list, defaults to "\n"
- def decorateUListOpen(): String
used to print the beginning of an unordered list, defaults to "\n"
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def indentation(): String
The string used to ident one level.
The string used to ident one level. Defaults to the empty string
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()