"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "markup/goldmark/convert.go" between
hugo-0.80.0.tar.gz and hugo-0.81.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

convert.go  (hugo-0.80.0):convert.go  (hugo-0.81.0)
skipping to change at line 24 skipping to change at line 24
// Package goldmark converts Markdown to HTML using Goldmark. // Package goldmark converts Markdown to HTML using Goldmark.
package goldmark package goldmark
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"math/bits" "math/bits"
"path/filepath" "path/filepath"
"runtime/debug" "runtime/debug"
"github.com/gohugoio/hugo/markup/goldmark/internal/extensions/attributes"
"github.com/gohugoio/hugo/identity" "github.com/gohugoio/hugo/identity"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/gohugoio/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/gohugoio/hugo/markup/converter" "github.com/gohugoio/hugo/markup/converter"
"github.com/gohugoio/hugo/markup/highlight" "github.com/gohugoio/hugo/markup/highlight"
"github.com/gohugoio/hugo/markup/tableofcontents" "github.com/gohugoio/hugo/markup/tableofcontents"
skipping to change at line 140 skipping to change at line 142
} }
if cfg.Extensions.Footnote { if cfg.Extensions.Footnote {
extensions = append(extensions, extension.Footnote) extensions = append(extensions, extension.Footnote)
} }
if cfg.Parser.AutoHeadingID { if cfg.Parser.AutoHeadingID {
parserOptions = append(parserOptions, parser.WithAutoHeadingID()) parserOptions = append(parserOptions, parser.WithAutoHeadingID())
} }
if cfg.Parser.Attribute { if cfg.Parser.Attribute.Title {
parserOptions = append(parserOptions, parser.WithAttribute()) parserOptions = append(parserOptions, parser.WithAttribute())
} }
if cfg.Parser.Attribute.Block {
extensions = append(extensions, attributes.New())
}
md := goldmark.New( md := goldmark.New(
goldmark.WithExtensions( goldmark.WithExtensions(
extensions..., extensions...,
), ),
goldmark.WithParserOptions( goldmark.WithParserOptions(
parserOptions..., parserOptions...,
), ),
goldmark.WithRendererOptions( goldmark.WithRendererOptions(
rendererOptions..., rendererOptions...,
), ),
 End of changes. 3 change blocks. 
1 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)