Packages

p

laika

format

package format

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Value Members

  1. object EPUB extends TwoPhaseRenderFormat[HTMLFormatter, BinaryPostProcessor]

    A post processor for EPUB output, based on an interim HTML renderer.

    A post processor for EPUB output, based on an interim HTML renderer. May be directly passed to the Renderer or Transformer APIs:

    implicit val cs: ContextShift[IO] =
      IO.contextShift(ExecutionContext.global)
    
    val blocker = Blocker.liftExecutionContext(
      ExecutionContext.fromExecutor(Executors.newCachedThreadPool())
    )
    
    val transformer = Transformer
      .from(Markdown)
      .to(EPUB)
      .using(GitHubFlavor)
      .io(blocker)
      .parallel[IO]
      .build
    
    val res: IO[Unit] = transformer
      .fromDirectory("src")
      .toFile("demo.epub")
      .transform

    In the example above the input from an entire directory gets merged into a single output file.

Ungrouped