Documentation ¶
Overview ¶
package format (markdown) is a markdown to html converter, heavily inspired by the mautrix-go/format package
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Extensions is the default set of extensions to use with Goldmark. Extensions = goldmark.WithExtensions(extension.Strikethrough, extension.Table) // RendererOptions is the default set of renderer options to use with Goldmark. RendererOptions = goldmark.WithRendererOptions(html.WithHardWraps(), html.WithUnsafe()) // ParserOptions is the default set of parser options to use with Goldmark. ParserOptions = goldmark.WithParserOptions(parser.WithASTTransformers(util.Prioritized(&LinksTransformer{}, 1000))) // Renderer is the default Goldmark renderer. Renderer = goldmark.New(Extensions, RendererOptions, ParserOptions) )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.