Skip to content

Commit

Permalink
Merge pull request #58 from sirwart/enable-footnotes
Browse files Browse the repository at this point in the history
Enable support for footnotes in markdown files to match jekyll behavior
  • Loading branch information
danog authored Apr 21, 2024
2 parents f9e6e4b + 6ca3ea7 commit 33bbe10
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions renderers/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const blackfridayFlags = 0 |
blackfriday.Smartypants |
blackfriday.SmartypantsFractions |
blackfriday.SmartypantsDashes |
blackfriday.SmartypantsLatexDashes
blackfriday.SmartypantsLatexDashes |
blackfriday.FootnoteReturnLinks

const blackfridayExtensions = 0 |
blackfriday.NoIntraEmphasis |
Expand All @@ -29,7 +30,8 @@ const blackfridayExtensions = 0 |
blackfriday.DefinitionLists |
blackfriday.NoEmptyLineBeforeBlock |
// added relative to commonExtensions
blackfriday.AutoHeadingIDs
blackfriday.AutoHeadingIDs |
blackfriday.Footnotes

func renderMarkdown(md []byte) ([]byte, error) {
params := blackfriday.HTMLRendererParameters{
Expand Down

0 comments on commit 33bbe10

Please sign in to comment.