HtmlOnlyPostRenderer

class HtmlOnlyPostRenderer(name: String, context: Context, baseTemplateProcessor: () -> TemplateProcessor = baseHtmlTemplateProcessor) : 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

name

the name of the HTML output resource, without extension

context

the rendering context

baseTemplateProcessor

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

Constructors

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

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>): OutputResource