Support rendering definition lists

This commit is contained in:
Christian Muehlhaeuser
2019-12-13 03:00:45 +01:00
parent cc0738c20a
commit e310343e4a
3 changed files with 42 additions and 1 deletions
+4 -1
View File
@@ -91,7 +91,10 @@ func (tr *TermRenderer) Render(in string) string {
// RenderBytes returns the markdown rendered into a byte slice.
func (tr *TermRenderer) RenderBytes(in []byte) []byte {
md := goldmark.New(
goldmark.WithExtensions(extension.GFM),
goldmark.WithExtensions(
extension.GFM,
extension.DefinitionList,
),
goldmark.WithParserOptions(
parser.WithAutoHeadingID(),
),