HtmlOnlyPostRenderer

class HtmlOnlyPostRenderer(context: Context, 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

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, name: String = "index", relativePathToRoot: String)

Properties

Functions

Link copied to clipboard
open override fun generateResources(rendered: CharSequence): Set<OutputResource>

Generates a single HTML output resource with the given name and the rendered content, and no additional resources.

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