Skip to content
Snippets Groups Projects
Commit 5aa709c7 authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Allow strike with ~~

parent 2a66040e
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ class Markdown
# Process MD like for strong, italic and strike
msg = msg.replace(/\*([^*]+)\*/g, '<strong>$1</strong>')
msg = msg.replace(/\_([^_]+)\_/g, '<i>$1</i>')
msg = msg.replace(/\~([^_]+)\~/g, '<strike>$1</strike>')
msg = msg.replace(/\~{1,2}([^~]+)\~{1,2}/g, '<strike>$1</strike>')
message.html = msg
return message
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment