Skip to content

Commit

Permalink
Enable intra-word emphasis supression in markdown (#999)
Browse files Browse the repository at this point in the history
This fixes plain links sent to Matrix being broken if they contain
underscores. Fixes issue #997
  • Loading branch information
MartijnBraam authored Feb 4, 2020
1 parent 3049ef9 commit c0be3e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge/helper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c0be3e5

Please sign in to comment.