Packages

t

laika.sbt

ExtensionBundles

trait ExtensionBundles extends AnyRef

API shortcuts for the most common extension points that create an extension bundle from a single feature, so that it can be passed to the laikaExtensions setting.

Example:

laikaExtensions += laikaSpanRewriteRule {
  case Emphasized(content, _) => Replace(Strong(content))
}
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExtensionBundles
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. def laikaBlockRewriteRule(rule: RewriteRule[Block]): ExtensionBundle

    Create an extension bundle based on the specified rewrite rule for blocks.

    Create an extension bundle based on the specified rewrite rule for blocks.

    Rewrite rules allow the modification of the document AST between parse and render operations.

  12. def laikaDocTypeMatcher(f: PartialFunction[Path, DocumentType]): ExtensionBundle

    Create an extension bundle based on the specified document type matcher.

    Create an extension bundle based on the specified document type matcher.

    The matcher function determines the document type of the input based on its path.

  13. def laikaEpubRenderer(f: PartialFunction[(HTMLFormatter, Element), String]): ExtensionBundle

    Create an extension bundle based on the specified custom HTML render function.

  14. def laikaFoRenderer(f: PartialFunction[(FOFormatter, Element), String]): ExtensionBundle

    Create an extension bundle based on the specified custom XSL-FO render function.

    Create an extension bundle based on the specified custom XSL-FO render function.

    Such a render function will also be used for PDF rendering, as XSL-FO is an interim format for the PDF renderer.

  15. def laikaHtmlRenderer(f: PartialFunction[(HTMLFormatter, Element), String]): ExtensionBundle

    Create an extension bundle based on the specified custom HTML render function.

  16. def laikaRewriteRuleBuilder(builder: RewriteRulesBuilder): ExtensionBundle

    Create an extension bundle based on the specified rewrite rule.

    Create an extension bundle based on the specified rewrite rule.

    Rewrite rules allow the modification of the document AST between parse and render operations. The supplied function will get invoked for every document in the transformation, therefore creating a new rule for each document.

  17. def laikaRewriteRules(rules: RewriteRules): ExtensionBundle

    Create an extension bundle based on the specified rewrite rule for blocks.

    Create an extension bundle based on the specified rewrite rule for blocks.

    Rewrite rules allow the modification of the document AST between parse and render operations.

  18. def laikaSpanRewriteRule(rule: RewriteRule[Span]): ExtensionBundle

    Create an extension bundle based on the specified rewrite rule for spans.

    Create an extension bundle based on the specified rewrite rule for spans.

    Rewrite rules allow the modification of the document AST between parse and render operations.

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped