[FIX] Inline code following a url leads to autolinking of code with url (#10163)

pull/10309/merge
Nikhil Kaushik 7 years ago committed by Rodrigo Nascimento
parent b0d297d696
commit b076dd5573
  1. 2
      packages/rocketchat-markdown/parser/original/code.js

@ -9,7 +9,7 @@ import hljs from 'highlight.js';
const inlinecode = (message) => {
// Support `text`
return message.html = message.html.replace(/(^|&gt;|[ >_*~])\`([^`\r\n]+)\`([<_*~]|\B|\b|$)/gm, (match, p1, p2, p3) => {
const token = `=!=${ Random.id() }=!=`;
const token = ` =!=${ Random.id() }=!=`;
message.tokens.push({
token,

Loading…
Cancel
Save