class StandardBlockDirectives extends AnyRef
Defines all supported standard block directives of the reStructuredText reference parser.
The following directives are fully supported:
compound
container
admonition
attention
caution
danger
error
hint
important
note
tip
warning
topic
sidebar
rubric
epigraph
highlights
pull-quote
parsed-literal
table
contents
sectnum
figure
image
header
footer
title
meta
The following directives are supported with some limitations:
code
does currently not support syntax highlighting (it allows to set the language so client-side highlighters can be integrated if required)sectnum
does currently not support theprefix
,suffix
andstart
options.raw
does not support thefile
orurl
options.include
does not support any of the options apart from the filename. See the API entry for this directive for details.
Finally, for some directives there is currently no support planned:
math
(would require external tools)csv-table
,list-table
(would just require some work, contributions are welcome)target-notes
,class
(these would require processing beyond the directive itself, therefore would require new API)
- Alphabetic
- By Inheritance
- StandardBlockDirectives
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new StandardBlockDirectives()
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
admonition(style: String, title: String): DirectivePartBuilder[Block]
The attention, caution, danger, error, hint, important, note, tip and warning directives, which are all identical apart from their title which can be specified with the style parameter.
The attention, caution, danger, error, hint, important, note, tip and warning directives, which are all identical apart from their title which can be specified with the style parameter. See http://docutils.sourceforge.net/docs/ref/rst/directives.html#specific-admonitions for details.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
lazy val
blockDirectives: List[Directive[Block]]
All standard block directives currently supported by Laika, except for the
raw
directive which needs to be enabled explicitly. -
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
code(p: RecursiveParsers): DirectivePartBuilder[Block]
The code directive, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#code for details.
The code directive, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#code for details. The current implementation does not support syntax highlighting.
-
lazy val
compound: DirectivePartBuilder[Block]
The compound directive, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#compound-paragraph for details.
-
lazy val
container: DirectivePartBuilder[Block]
The container directive, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#container for details.
- lazy val contents: DirectivePartBuilder[Block]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
figure(p: RecursiveParsers): DirectivePartBuilder[Block]
The figure directive, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#figure for details.
-
lazy val
footer: DirectivePartBuilder[Block]
The footer directive, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#document-header-footer for details.
-
lazy val
genericAdmonition: DirectivePartBuilder[Block]
The admonition directive, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#generic-admonition for details.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
lazy val
header: DirectivePartBuilder[Block]
The header directive, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#document-header-footer for details.
-
def
imageBlock(p: RecursiveParsers): DirectivePartBuilder[Block]
The image directive for block elements, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#image for details.
-
lazy val
include: DirectivePartBuilder[Block]
The include directive, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#including-an-external-document-fragment for details.
The include directive, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#including-an-external-document-fragment for details.
Note that the only argument supported in Laika is the default argument specifying the path of the file to include. The other options supported by reStructuredText original parser do not make sense in the execution context of Laika. They assume that the file is parsed everytime an include directive is used, whereas in Laika all files of the source tree get parsed in one go and then the include step simply references the previously parsed node tree. This is both simpler and more efficient when the same file gets included in multiple places.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
lazy val
meta: DirectivePartBuilder[Block]
The meta directive, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#meta for details.
The meta directive, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#meta for details.
In Laika there is no special document tree element for metadata. Therefore the result will be accessible through the generic config property in the
Document
class. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
lazy val
parsedLiteral: DirectivePartBuilder[Block]
The parsed-literal directive, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#parsed-literal-block for details.
-
def
quotedBlock(style: String): DirectivePartBuilder[Block]
The epitaph, highlights and pull-quote directives, which are all identical apart from the style parameter, see epigraph, highlights and pull-quote for details.
-
lazy val
rawDirective: Directive[Block]
The raw directive, which is not enabled by default, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#raw-data-pass-through for details.
The raw directive, which is not enabled by default, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#raw-data-pass-through for details. It can be enabled with
Transformer.from(ReStructuredText).to(HTML).withRawContent
. -
lazy val
rubric: DirectivePartBuilder[Block]
The rubric directive, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#rubric for details.
- lazy val sectnum: DirectivePartBuilder[Block]
-
def
sidebar(p: RecursiveParsers): DirectivePartBuilder[Block]
The sidebar directive, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#sidebar for details.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
table(p: RecursiveParsers): DirectivePartBuilder[Block]
The table directive, adding a title to standard reStructuredText tables, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#table for details.
-
lazy val
titleDirective: DirectivePartBuilder[EmbeddedConfigValue]
The title directive, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#metadata-document-title for details.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
lazy val
topic: DirectivePartBuilder[Block]
The topic directive, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#topic for details.
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated