Skip to content

Commit b3df6e7

Browse files
authored
Markdown: enable some more extensions
Improve Markdown-rendering by enabling some extensions: - enable definitions lists - enable footnotes - enable header-ids and automatically generate header-ids (for linking to README-sections or creating table-of-contents for larger READMEs)
1 parent ca46385 commit b3df6e7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/markup/markdown/markdown.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ const (
128128
blackfriday.EXTENSION_TABLES |
129129
blackfriday.EXTENSION_FENCED_CODE |
130130
blackfriday.EXTENSION_STRIKETHROUGH |
131-
blackfriday.EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK
131+
blackfriday.EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK |
132+
blackfriday.EXTENSION_DEFINITION_LISTS |
133+
blackfriday.EXTENSION_FOOTNOTES |
134+
blackfriday.EXTENSION_HEADER_IDS |
135+
blackfriday.EXTENSION_AUTO_HEADER_IDS
132136
blackfridayHTMLFlags = 0 |
133137
blackfriday.HTML_SKIP_STYLE |
134138
blackfriday.HTML_OMIT_CONTENTS |

0 commit comments

Comments
 (0)