laika.rst.bundle

Members list

Concise view

Type members

Classlikes

Responsible for extracting a docInfo block at the start of a reStructuredText document and inserting it into the docInfo element in the config object for that document.

Responsible for extracting a docInfo block at the start of a reStructuredText document and inserting it into the docInfo element in the config object for that document.

See http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#bibliographic-fields.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

HTML renderer for special reStructuredText tree elements not part of the default document tree model.

HTML renderer for special reStructuredText tree elements not part of the default document tree model.

The following tree elements are specific to reStructuredText and are not included in the default model:

  • FieldList and corresponding child elements
  • OptionList and corresponding child elements
  • DoctestBlock

FieldLists being part of a directive declaration will be processed by the default parser, the FieldList element only appears in the final document model if field lists are used outside of directives.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object LinkTargetProcessor extends Seq[Block] => Seq[Block]

Processes link targets in a sequence of blocks.

Processes link targets in a sequence of blocks.

In reStructuredText internal link targets provide the id of subsequent block items. This functions gets applied recursively to all block lists.

Attributes

Graph
Supertypes
trait Seq[Block] => Seq[Block]
class Object
trait Matchable
class Any
Self type

Registry for the standard extensions of ReStructuredText which allow for raw content pass-through. These have to be enabled to call withRawContent on the Parse or Transform APIs:

Registry for the standard extensions of ReStructuredText which allow for raw content pass-through. These have to be enabled to call withRawContent on the Parse or Transform APIs:

val transformer = Transformer
 .from(ReStructuredText)
 .to(HTML)
 .withRawContent
 .build

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class RewriteRules(textRoles: Seq[TextRole]) extends RewriteRulesBuilder

The default rewrite rules that get applied to the raw document tree after parsing reStructuredText markup. These rules are responsible for resolving substitution references and interpreted text which are specific to reStructuredText and get usually executed alongside the generic rules. .

The default rewrite rules that get applied to the raw document tree after parsing reStructuredText markup. These rules are responsible for resolving substitution references and interpreted text which are specific to reStructuredText and get usually executed alongside the generic rules. .

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
trait RstExtension[P]

Common base trait for reStructuredText extensions (directives and text roles).

Common base trait for reStructuredText extensions (directives and text roles).

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Directive[E]
class TextRole

Companion with utilities for initializing extensions.

Companion with utilities for initializing extensions.

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Registry for custom reStructuredText extensions. Application code can define any number of instances mixing in this trait and then pass them to Parse, Render or Transform operations:

Registry for custom reStructuredText extensions. Application code can define any number of instances mixing in this trait and then pass them to Parse, Render or Transform operations:

object MyExtensions extends RstExtensionRegistry {
 val spanDirectives = Seq(...)
 val blockDirectives = Seq(...)
 val textRoles = Seq(...)
}
object OtherExtensions extends RstExtensionRegistry {
 [...]
}

val transformer = Transformer
 .from(ReStructuredText)
 .to(HTML)
 .using(MyDirectives, OtherDirectives)
 .build

In contrast to the original Python implementation, this API has been redesigned to be a more idiomatic, concise and type-safe Scala DSL. See the documentation for the methods of this trait for concrete examples on how to implement an extension.

The following extension types are available:

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class RstExtensionSupport(blockDirectives: Seq[Directive[Block]], spanDirectives: Seq[Directive[Span]], textRoles: Seq[TextRole], defaultTextRole: String) extends ExtensionBundle

Internal API that processes all extensions defined by one or more RstExtensionRegistries. This extension is installed by default when using the reStructuredText parser.

Internal API that processes all extensions defined by one or more RstExtensionRegistries. This extension is installed by default when using the reStructuredText parser.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Empty base instance as a basis for registering reStructuredText extensions.

Empty base instance as a basis for registering reStructuredText extensions.

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Registry for all standard extensions of ReStructuredText as defined by the specification, except for those which allow for raw content pass-through, which are kept separately in RawContentExtensions.

Registry for all standard extensions of ReStructuredText as defined by the specification, except for those which allow for raw content pass-through, which are kept separately in RawContentExtensions.

See http://docutils.sourceforge.net/docs/ref/rst/directives.html for details.

This extension is installed by default when using the reStructuredText parser.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type