Skip to content

Commit

Permalink
stop using mdigger's extension for attributes to resolve issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
kpym committed Feb 17, 2024
1 parent d29413b commit 15a323c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions gm_parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"strings"

chroma "github.com/alecthomas/chroma/formatters/html"
attributes "github.com/mdigger/goldmark-attributes"
"github.com/spf13/pflag"
"github.com/yuin/goldmark"
emoji "github.com/yuin/goldmark-emoji"
Expand Down Expand Up @@ -282,7 +281,7 @@ func setGoldMark() {
extensions = append(extensions, emoji.Emoji)
}
if attribute {
goldmarkOptions = append(goldmarkOptions, attributes.Enable)
parserOptions = append(parserOptions, parser.WithAttribute())
}
if unsafe {
rendererOptions = append(rendererOptions, html.WithUnsafe())
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ require (
github.com/alecthomas/chroma v0.10.0
github.com/bmatcuk/doublestar/v4 v4.6.1
github.com/grokify/html-strip-tags-go v0.1.0
github.com/mdigger/goldmark-attributes v0.0.0-20210529130523-52da21a6bf2b
github.com/spf13/pflag v1.0.6-0.20201009195203-85dd5c8bc61c
github.com/yuin/goldmark v1.5.6
github.com/yuin/goldmark-emoji v1.0.2
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ github.com/dlclark/regexp2 v1.10.0 h1:+/GIL799phkJqYW+3YbOd8LCcbHzT0Pbo8zl70MHsq
github.com/dlclark/regexp2 v1.10.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
github.com/grokify/html-strip-tags-go v0.1.0 h1:03UrQLjAny8xci+R+qjCce/MYnpNXCtgzltlQbOBae4=
github.com/grokify/html-strip-tags-go v0.1.0/go.mod h1:ZdzgfHEzAfz9X6Xe5eBLVblWIxXfYSQ40S/VKrAOGpc=
github.com/mdigger/goldmark-attributes v0.0.0-20210529130523-52da21a6bf2b h1:b7OaN0oQFTn5bhUhbNVA7q82fF5hnzNFhuYKDqJ78Ag=
github.com/mdigger/goldmark-attributes v0.0.0-20210529130523-52da21a6bf2b/go.mod h1:9c4hA7YdGQGp2KDiT149eXUg8Y6kFZNPo6hSBS68zV0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/spf13/pflag v1.0.6-0.20201009195203-85dd5c8bc61c h1:zqmyTlQyufRC65JnImJ6H1Sf7BDj8bG31EV919NVEQc=
Expand Down

0 comments on commit 15a323c

Please sign in to comment.