Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
open class ProcessedMarkdownFile(var content: String, val path: Path, val markdownTemplate: MarkdownTemplate, val attributesCustomizer: StatefulAttributeCustomizer) : MarkdownFile
Link copied to clipboard
Link copied to clipboard
open class SyntaxHighlightedGFMFlavourDescriptor(useSafeLinks: Boolean = true, absolutizeAnchorLinks: Boolean = false) : GFMFlavourDescriptor

Hacked together Markdown flavor descriptor to highlight codeblocks with Prism4j.

Functions

Link copied to clipboard
fun Any.asMap(): Map<*, *>

Convert Any to a Map in a way that's easily null-safetied.

Link copied to clipboard

Meta-attribute customizer that applies a series of customizers.

Link copied to clipboard

Attribute customizer that remaps hrefs in links to point to HTML files instead of Markdown files.

Link copied to clipboard
fun OutputPath.md(source: Path, markdownTemplate: MarkdownTemplate = this.markdownTemplate, attributesCustomizer: StatefulAttributeCustomizer = compoundAttributeCustomizer( ProcessedMarkdownFile::hrefFixingAttributesCustomizer, ProcessedMarkdownFile::headingIDAttributeCustomizer )): <Error class: unknown class>

Convert a Markdown file to an HTML body with the given template and attribute customizer. By default, hrefFixingAttributesCustomizer to retarget hrefs to html files and headingIDAttributeCustomizer to add IDs to headings are applied.

Link copied to clipboard
fun OutputPath.mdBasic(source: Path): <Error class: unknown class>

Convert a Markdown file to an HTML body directly with no templating or other post-processing. You likely don't want this one, use md for more flexibility.

Link copied to clipboard

A default template for md that adds OpenGraph meta tags to the HTML.