GFMFlavourDescriptor

open class GFMFlavourDescriptor(useSafeLinks: Boolean, absolutizeAnchorLinks: Boolean, makeHttpsAutoLinks: Boolean) : CommonMarkFlavourDescriptor

GitHub Markdown spec based flavour, to be used as a base for other flavours.

Parameters

useSafeLinks

true if all rendered links should be checked for XSS and false otherwise. See makeXssSafeDestination

absolutizeAnchorLinks

true if anchor links (e.g. #foo) should be resolved against baseURI and false otherwise

makeHttpsAutoLinks

enables use of HTTPS schema for auto links.

Constructors

GFMFlavourDescriptor
Link copied to clipboard
common
fun GFMFlavourDescriptor(useSafeLinks: Boolean = true, absolutizeAnchorLinks: Boolean = false, makeHttpsAutoLinks: Boolean = false)
true if all rendered links should be checked for XSS and false otherwise.

Functions

createHtmlGeneratingProviders
Link copied to clipboard
common
open override fun createHtmlGeneratingProviders(linkMap: LinkMap, baseURI: URI?): Map<IElementType, GeneratingProvider>
createInlinesLexer
Link copied to clipboard
common
open override fun createInlinesLexer(): MarkdownLexer

Properties

markerProcessorFactory
Link copied to clipboard
common
open override val markerProcessorFactory: MarkerProcessorFactory
sequentialParserManager
Link copied to clipboard
common
open override val sequentialParserManager: SequentialParserManager

Inheritors

SFMFlavourDescriptor
Link copied to clipboard