commit 9b1715badd411999a863d55924a55c575d660971
parent c9ab24395f802b12d91f9925bd498267ee25fd37
Author: Yusuke Inuzuka <yuin@inforno.net>
Date: Fri, 30 Aug 2019 16:42:58 +0900
Update goldmark dependencies
Diffstat:
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/go.mod b/go.mod
@@ -3,6 +3,6 @@ module github.com/yuin/goldmark-meta
go 1.12
require (
- github.com/yuin/goldmark v1.0.10
+ github.com/yuin/goldmark v1.1.0
gopkg.in/yaml.v2 v2.2.2
)
diff --git a/go.sum b/go.sum
@@ -6,6 +6,8 @@ github.com/yuin/goldmark v1.0.8 h1:VYm6VjdG4bwvxLpjfZrWIE4lO29wxewXI963dk4hHmA=
github.com/yuin/goldmark v1.0.8/go.mod h1:hDgn8A2EV4OniExoeJs1fSrmEc/T7w8+Teyq8YkThxQ=
github.com/yuin/goldmark v1.0.10 h1:xQ0/d53QSBARDlnAf3+BX1Te3uS9H8WR3Pw7Ia1wTto=
github.com/yuin/goldmark v1.0.10/go.mod h1:hDgn8A2EV4OniExoeJs1fSrmEc/T7w8+Teyq8YkThxQ=
+github.com/yuin/goldmark v1.1.0 h1:Z5ZerZZLUdCBKw7nhz0z14LMkpPvHmo7j2MdbzD39LI=
+github.com/yuin/goldmark v1.1.0/go.mod h1:hDgn8A2EV4OniExoeJs1fSrmEc/T7w8+Teyq8YkThxQ=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
diff --git a/meta.go b/meta.go
@@ -67,6 +67,10 @@ func isSeparator(line []byte) bool {
return true
}
+func (b *metaParser) Trigger() []byte {
+ return []byte{'-'}
+}
+
func (b *metaParser) Open(parent gast.Node, reader text.Reader, pc parser.Context) (gast.Node, parser.State) {
linenum, _ := reader.Position()
if linenum != 0 {