Skip to content

Commit

Permalink
Enable support for footnotes in markdown files to match jekyll behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
sirwart committed Apr 18, 2024
1 parent f1794a8 commit 6ca3ea7
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 6ca3ea7

Please sign in to comment.