4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-26 08:39:24 +00:00

Disable smartypants in markdown parser. Fixes #989, #983 (#993)

This commit is contained in:
Wim
2020-02-02 18:35:43 +01:00
committed by GitHub
parent 7486555875
commit 585d1556c1
6 changed files with 11 additions and 7 deletions

View File

@ -8,7 +8,7 @@ A renderer can be configured with multiple options:
import "github.com/gomarkdown/markdown/html"
flags := html.CommonFlags | html.CompletePage | html.HrefTargetBlank
opts := html.RenderOptions{
opts := html.RendererOptions{
TItle: "A custom title",
Flags: flags,
}

View File

@ -689,7 +689,7 @@ func leftAngle(p *Parser, data []byte, offset int) (int, ast.Node) {
}
// '\\' backslash escape
var escapeChars = []byte("\\`*_{}[]()#+-.!:|&<>~")
var escapeChars = []byte("\\`*_{}[]()#+-.!:|&<>~^")
func escape(p *Parser, data []byte, offset int) (int, ast.Node) {
data = data[offset:]

2
vendor/modules.txt vendored
View File

@ -44,7 +44,7 @@ github.com/go-telegram-bot-api/telegram-bot-api
# github.com/golang/protobuf v1.3.1
github.com/golang/protobuf/proto
github.com/golang/protobuf/protoc-gen-go/descriptor
# github.com/gomarkdown/markdown v0.0.0-20200105192015-0948ad373b2c
# github.com/gomarkdown/markdown v0.0.0-20200127000047-1813ea067497
github.com/gomarkdown/markdown
github.com/gomarkdown/markdown/ast
github.com/gomarkdown/markdown/html