diff options
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/github.com/yuin/goldmark/README.md | 2 | ||||
-rw-r--r-- | vendor/github.com/yuin/goldmark/parser/html_block.go | 6 | ||||
-rw-r--r-- | vendor/github.com/yuin/goldmark/renderer/html/html.go | 1 | ||||
-rw-r--r-- | vendor/modules.txt | 2 |
4 files changed, 7 insertions, 4 deletions
diff --git a/vendor/github.com/yuin/goldmark/README.md b/vendor/github.com/yuin/goldmark/README.md index c99ecb55d..6244b4792 100644 --- a/vendor/github.com/yuin/goldmark/README.md +++ b/vendor/github.com/yuin/goldmark/README.md @@ -446,6 +446,8 @@ Extensions - [goldmark-embed](https://github.com/13rac1/goldmark-embed): Adds support for rendering embeds from YouTube links. - [goldmark-latex](https://github.com/soypat/goldmark-latex): A $\LaTeX$ renderer that can be passed to `goldmark.WithRenderer()`. - [goldmark-fences](https://github.com/stefanfritsch/goldmark-fences): Support for pandoc-style [fenced divs](https://pandoc.org/MANUAL.html#divs-and-spans) in goldmark. +- [goldmark-d2](https://github.com/FurqanSoftware/goldmark-d2): Adds support for [D2](https://d2lang.com/) diagrams. +- [goldmark-katex](https://github.com/FurqanSoftware/goldmark-katex): Adds support for [KaTeX](https://katex.org/) math and equations. goldmark internal(for extension developers) diff --git a/vendor/github.com/yuin/goldmark/parser/html_block.go b/vendor/github.com/yuin/goldmark/parser/html_block.go index 380e723f2..6881e25a9 100644 --- a/vendor/github.com/yuin/goldmark/parser/html_block.go +++ b/vendor/github.com/yuin/goldmark/parser/html_block.go @@ -149,7 +149,7 @@ func (b *htmlBlockParser) Open(parent ast.Node, reader text.Reader, pc Context) } } if node != nil { - reader.Advance(segment.Len() - 1) + reader.Advance(segment.Len() - util.TrimRightSpaceLength(line)) node.Lines().Append(segment) return node, NoChildren } @@ -172,7 +172,7 @@ func (b *htmlBlockParser) Continue(node ast.Node, reader text.Reader, pc Context } if htmlBlockType1CloseRegexp.Match(line) { htmlBlock.ClosureLine = segment - reader.Advance(segment.Len() - 1) + reader.Advance(segment.Len() - util.TrimRightSpaceLength(line)) return Close } case ast.HTMLBlockType2: @@ -211,7 +211,7 @@ func (b *htmlBlockParser) Continue(node ast.Node, reader text.Reader, pc Context } } node.Lines().Append(segment) - reader.Advance(segment.Len() - 1) + reader.Advance(segment.Len() - util.TrimRightSpaceLength(line)) return Continue | NoChildren } diff --git a/vendor/github.com/yuin/goldmark/renderer/html/html.go b/vendor/github.com/yuin/goldmark/renderer/html/html.go index a3d1fe299..7bf2ab808 100644 --- a/vendor/github.com/yuin/goldmark/renderer/html/html.go +++ b/vendor/github.com/yuin/goldmark/renderer/html/html.go @@ -244,6 +244,7 @@ var GlobalAttributeFilter = util.NewBytesFilter( []byte("itemtype"), []byte("lang"), []byte("part"), + []byte("role"), []byte("slot"), []byte("spellcheck"), []byte("style"), diff --git a/vendor/modules.txt b/vendor/modules.txt index ce7f5e692..420c3df83 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -676,7 +676,7 @@ github.com/vmihailenco/tagparser/v2/internal/parser # github.com/wagslane/go-password-validator v0.3.0 ## explicit; go 1.16 github.com/wagslane/go-password-validator -# github.com/yuin/goldmark v1.5.3 +# github.com/yuin/goldmark v1.5.4 ## explicit; go 1.18 github.com/yuin/goldmark github.com/yuin/goldmark/ast |