diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-09-09 13:08:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-09 13:08:20 +0200 |
commit | eaf2f9bce5537a1dcbdb32dc62b9827e5a99585b (patch) | |
tree | 1ba3b7e24d8e5a68575e324be1a28471b050f48b /helpers/content.go | |
parent | 76bf2dcdd23f4cedb425f66503916a58698986dd (diff) |
Add TODO list support for Blackfriday
* Add CSS class to TODO list and list items
* Add a flag to turn task list support off
Fixes #2269
Diffstat (limited to 'helpers/content.go')
-rw-r--r-- | helpers/content.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/helpers/content.go b/helpers/content.go index 49d3469c5..53176de64 100644 --- a/helpers/content.go +++ b/helpers/content.go @@ -51,6 +51,7 @@ type Blackfriday struct { HrefTargetBlank bool SmartDashes bool LatexDashes bool + TaskLists bool PlainIDAnchors bool SourceRelativeLinksEval bool SourceRelativeLinksProjectFolder string @@ -68,6 +69,7 @@ func NewBlackfriday(c ConfigProvider) *Blackfriday { "smartDashes": true, "latexDashes": true, "plainIDAnchors": true, + "taskLists": true, "sourceRelativeLinks": false, "sourceRelativeLinksProjectFolder": "/docs/content", } |