summaryrefslogtreecommitdiffstats
path: root/helpers/content.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-08-02 21:37:03 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-08-02 22:04:38 +0200
commit9891c0fb0eb274b8a95b62c40070a87a6e04088c (patch)
tree16c12115fceda9ef39e43dc3f7c6eee5965dc840 /helpers/content.go
parent481924b34d23b0ce435778cce7bce77571b22f9d (diff)
Remove sourceRelativeLinks
Fixes #3766
Diffstat (limited to 'helpers/content.go')
-rw-r--r--helpers/content.go53
1 files changed, 20 insertions, 33 deletions
diff --git a/helpers/content.go b/helpers/content.go
index d84fe27a8..4c053a84d 100644
--- a/helpers/content.go
+++ b/helpers/content.go
@@ -62,35 +62,31 @@ func NewContentSpec(cfg config.Provider) *ContentSpec {
// Blackfriday holds configuration values for Blackfriday rendering.
type Blackfriday struct {
- Smartypants bool
- SmartypantsQuotesNBSP bool
- AngledQuotes bool
- Fractions bool
- HrefTargetBlank bool
- SmartDashes bool
- LatexDashes bool
- TaskLists bool
- PlainIDAnchors bool
- SourceRelativeLinksEval bool
- SourceRelativeLinksProjectFolder string
- Extensions []string
- ExtensionsMask []string
+ Smartypants bool
+ SmartypantsQuotesNBSP bool
+ AngledQuotes bool
+ Fractions bool
+ HrefTargetBlank bool
+ SmartDashes bool
+ LatexDashes bool
+ TaskLists bool
+ PlainIDAnchors bool
+ Extensions []string
+ ExtensionsMask []string
}
// NewBlackfriday creates a new Blackfriday filled with site config or some sane defaults.
func (c ContentSpec) NewBlackfriday() *Blackfriday {
defaultParam := map[string]interface{}{
- "smartypants": true,
- "angledQuotes": false,
- "smartypantsQuotesNBSP": false,
- "fractions": true,
- "hrefTargetBlank": false,
- "smartDashes": true,
- "latexDashes": true,
- "plainIDAnchors": true,
- "taskLists": true,
- "sourceRelativeLinks": false,
- "sourceRelativeLinksProjectFolder": "/docs/content",
+ "smartypants": true,
+ "angledQuotes": false,
+ "smartypantsQuotesNBSP": false,
+ "fractions": true,
+ "hrefTargetBlank": false,
+ "smartDashes": true,
+ "latexDashes": true,
+ "plainIDAnchors": true,
+ "taskLists": true,
}
ToLowerMap(defaultParam)
@@ -112,13 +108,6 @@ func (c ContentSpec) NewBlackfriday() *Blackfriday {
jww.FATAL.Printf("Failed to get site rendering config\n%s", err.Error())
}
- if combinedConfig.SourceRelativeLinksEval {
- // Remove in Hugo 0.21
- Deprecated("blackfriday", "sourceRelativeLinksEval",
- `There is no replacement for this feature, as no developer has stepped up to the plate and volunteered to maintain this feature`, false)
-
- }
-
return combinedConfig
}
@@ -412,8 +401,6 @@ type RenderingContext struct {
DocumentName string
Config *Blackfriday
RenderTOC bool
- FileResolver FileResolverFunc
- LinkResolver LinkResolverFunc
Cfg config.Provider
}