package blackfriday_config

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

Index

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!

Types

type Config

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

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

Source Files

config.go

Version
v0.62.1
Published
Jan 1, 2020
Platform
linux/amd64
Imports
2 packages
Last checked
4 hours ago

Tools for package owners.