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
typealias StatefulAttributeCustomizer = ProcessedMarkdownFile.(node: ASTNode, tagName: CharSequence, attributes: Iterable<CharSequence?>) -> Iterable<CharSequence?>
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 compoundAttributeCustomizer(vararg customizers: StatefulAttributeCustomizer): StatefulAttributeCustomizer
Meta-attribute customizer that applies a series of customizers.
Link copied to clipboard
fun ProcessedMarkdownFile.headingIDAttributeCustomizer(node: ASTNode, tagName: CharSequence, attributes: Iterable<CharSequence?>): Iterable<CharSequence?>
Link copied to clipboard
fun ProcessedMarkdownFile.hrefFixingAttributesCustomizer(node: ASTNode, tagName: CharSequence, attributes: Iterable<CharSequence?>): Iterable<CharSequence?>
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
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