HtmlOnlyPostRenderer

class HtmlOnlyPostRenderer(context: Context, baseTemplateProcessor: () -> TemplateProcessor = baseHtmlTemplateProcessor, name: String = "index", relativePathToRoot: String) : PostRenderer

A subset of HtmlPostRenderer that generates only the HTML output resources without any additional resources.

It supports out of the box:

  • RevealJS for slides rendering;

  • PagedJS for page-based rendering (e.g. books);

  • KaTeX for math rendering;

  • HighlightJS for code highlighting.

Parameters

context

the rendering context

baseTemplateProcessor

supplier of the base TemplateProcessor to inject with content and process via HtmlPostRendererTemplate.

name

the name of the HTML output resource, without extension

relativePathToRoot

the relative path to follow to get from the HTML resources generated by this post-renderer to the root (the location where the main HTML file is located, alongside script, theme, etc.)

Constructors

Link copied to clipboard
constructor(context: Context, baseTemplateProcessor: () -> TemplateProcessor = baseHtmlTemplateProcessor, name: String = "index", relativePathToRoot: String)

Properties

Functions

Link copied to clipboard
Link copied to clipboard
open override fun generateResources(rendered: CharSequence): Set<OutputResource>
Link copied to clipboard
open override fun wrapResources(name: String, resources: Set<OutputResource>): <Error class: unknown class>