hugo: github.com/gohugoio/hugo/markup/blackfriday/blackfriday_config Index | Files

package blackfriday_config

import "github.com/gohugoio/hugo/markup/blackfriday/blackfriday_config"

Index

Package Files

config.go

Variables

var Default = Config{
    Smartypants:           true,
    AngledQuotes:          false,
    SmartypantsQuotesNBSP: false,
    Fractions:             true,
    HrefTargetBlank:       false,
    NofollowLinks:         false,
    NoreferrerLinks:       false,
    SmartDashes:           true,
    LatexDashes:           true,
    PlainIDAnchors:        true,
    TaskLists:             true,
    SkipHTML:              false,
}

Default holds the default BlackFriday config. Do not change!

type Config Uses

type Config struct {
    Smartypants           bool
    SmartypantsQuotesNBSP bool
    AngledQuotes          bool
    Fractions             bool
    HrefTargetBlank       bool
    NofollowLinks         bool
    NoreferrerLinks       bool
    SmartDashes           bool
    LatexDashes           bool
    TaskLists             bool
    PlainIDAnchors        bool
    Extensions            []string
    ExtensionsMask        []string
    SkipHTML              bool

    FootnoteAnchorPrefix       string
    FootnoteReturnLinkContents string
}

Config holds configuration values for BlackFriday rendering. It is kept here because it's used in several packages.

func UpdateConfig Uses

func UpdateConfig(b Config, m map[string]interface{}) (Config, error)

Package blackfriday_config imports 2 packages (graph) and is imported by 10 packages. Updated 2019-11-24. Refresh now. Tools for package owners.