parent
fda9d91aa9
commit
fefa9e6745
5
go.mod
Normal file
5
go.mod
Normal file
@ -0,0 +1,5 @@
|
||||
module github.com/FooSoft/md2vim
|
||||
|
||||
go 1.16
|
||||
|
||||
require github.com/russross/blackfriday v1.6.0
|
2
go.sum
Normal file
2
go.sum
Normal file
@ -0,0 +1,2 @@
|
||||
github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww=
|
||||
github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY=
|
@ -318,15 +318,10 @@ func (*vimDoc) AutoLink(out *bytes.Buffer, link []byte, kind int) {
|
||||
}
|
||||
|
||||
func (*vimDoc) CodeSpan(out *bytes.Buffer, text []byte) {
|
||||
r := regexp.MustCompile(`\s`)
|
||||
|
||||
// vim does not correctly highlight space-delimited words in code spans
|
||||
if !r.Match(text) {
|
||||
out.WriteString("`")
|
||||
out.Write(text)
|
||||
out.WriteString("`")
|
||||
}
|
||||
}
|
||||
|
||||
func (*vimDoc) DoubleEmphasis(out *bytes.Buffer, text []byte) {
|
||||
out.Write(text)
|
||||
|
Loading…
Reference in New Issue
Block a user