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)) }
- Alphabetic
- By Inheritance
- ExtensionBundles
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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.
-
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.
-
def
laikaEpubRenderer(f: PartialFunction[(HTMLFormatter, Element), String]): ExtensionBundle
Create an extension bundle based on the specified custom HTML render function.
-
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.
-
def
laikaHtmlRenderer(f: PartialFunction[(HTMLFormatter, Element), String]): ExtensionBundle
Create an extension bundle based on the specified custom HTML render function.
-
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.
-
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.
-
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.
-
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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