forked from gohugoio/hugo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add back blackfriday extensions during Markdown conversion
Modified markdownRender and markdownRenderWithTOC in hugolib/page.go to use the same flags and extensions as were previously used when we simply called blackfriday.MarkdownCommon to convert Markdown to HTML. These flags/extensions were dropped during the refactor that added the `.TableOfContents` page variable, and caused features like Markdown tables to no longer work. Modified the expected output for TestTableOfContents in page_test.go, apparently changing the flags/extensions caused an `—` to become `–`.
- Loading branch information
Showing
2 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters