Versions in this module Expand all Collapse all v0 v0.1.1 Jul 9, 2026 v0.1.0 Jul 9, 2026 Changes in this version + var DefaultEmbedHosts = []string + func CSS() string + func CSSForStyle(style string) string + func HydrateJS() string + func Render(src []byte, opts ...Option) (template.HTML, error) + func RenderString(src string, opts ...Option) (string, error) + type Document struct + HTML template.HTML + Meta map[string]any + type Option func(*Options) + func WithEmbedHosts(hosts ...string) Option + func WithEmoji(on bool) Option + func WithFrontmatter(on bool) Option + func WithHeadingAnchors(on bool) Option + func WithHighlightTheme(style string) Option + func WithInline(on bool) Option + func WithMediaEmbeds(on bool) Option + func WithMermaid(on bool) Option + func WithSanitize(on bool) Option + func WithWikilinks(on bool) Option + type Options struct + EmbedHosts []string + Emoji bool + Frontmatter bool + HeadingAnchors bool + HighlightTheme string + Inline bool + MediaEmbeds bool + Mermaid bool + Sanitize bool + Wikilinks bool + func DefaultOptions() Options + type Renderer struct + func New(opts ...Option) *Renderer + func (r *Renderer) CSS() string + func (r *Renderer) Render(src []byte) (template.HTML, error) + func (r *Renderer) RenderDoc(src []byte) (*Document, error) + func (r *Renderer) RenderString(src string) (string, error)