hugo: github.com/gohugoio/hugo/markup/markup_config Index | Files

package markup_config

import "github.com/gohugoio/hugo/markup/markup_config"

Index

Package Files

config.go

Variables

var Default = Config{
    DefaultMarkdownHandler: "goldmark",

    TableOfContents: tableofcontents.DefaultConfig,
    Highlight:       highlight.DefaultConfig,

    Goldmark:    goldmark_config.Default,
    BlackFriday: blackfriday_config.Default,

    AsciidocExt: asciidocext_config.Default,
}

type Config Uses

type Config struct {
    // Default markdown handler for md/markdown extensions.
    // Default is "goldmark".
    // Before Hugo 0.60 this was "blackfriday".
    DefaultMarkdownHandler string

    Highlight       highlight.Config
    TableOfContents tableofcontents.Config

    // Content renderers
    Goldmark    goldmark_config.Config
    BlackFriday blackfriday_config.Config

    AsciidocExt asciidocext_config.Config
}

func Decode Uses

func Decode(cfg config.Provider) (conf Config, err error)

Package markup_config imports 9 packages (graph) and is imported by 8 packages. Updated 2020-06-28. Refresh now. Tools for package owners.