mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-27 13:12:05 -08:00
Enable intra-word emphasis supression in markdown (#999)
This fixes plain links sent to Matrix being broken if they contain underscores. Fixes issue #997
This commit is contained in:
parent
3049ef9151
commit
c0be3e585a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user