summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartijn Braam <martijn@brixit.nl>2020-02-04 13:22:05 +0100
committerGitHub <noreply@github.com>2020-02-04 13:22:05 +0100
commitc0be3e585a5ef6c6dc4d517e891fd10bc053c195 (patch)
treef80ce52d3d3226d600c4ac940dd20667259ee1aa
parent3049ef915126f7784f4ff1e06c645a9507f7042f (diff)
downloadmatterbridge-msglm-c0be3e585a5ef6c6dc4d517e891fd10bc053c195.tar.gz
matterbridge-msglm-c0be3e585a5ef6c6dc4d517e891fd10bc053c195.tar.bz2
matterbridge-msglm-c0be3e585a5ef6c6dc4d517e891fd10bc053c195.zip
Enable intra-word emphasis supression in markdown (#999)
This fixes plain links sent to Matrix being broken if they contain underscores. Fixes issue #997
-rw-r--r--bridge/helper/helper.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/helper/helper.go b/bridge/helper/helper.go
index 8d75a8ad..41244766 100644
--- a/bridge/helper/helper.go
+++ b/bridge/helper/helper.go
@@ -180,7 +180,7 @@ func ClipMessage(text string, length int) string {
// ParseMarkdown takes in an input string as markdown and parses it to html
func ParseMarkdown(input string) string {
- extensions := parser.HardLineBreak
+ extensions := parser.HardLineBreak | parser.NoIntraEmphasis
markdownParser := parser.NewWithExtensions(extensions)
renderer := html.NewRenderer(html.RendererOptions{
Flags: 0,