Skip to content
Snippets Groups Projects
Commit 9df9f091 authored by Gabriel Engel's avatar Gabriel Engel
Browse files

Merge pull request #588 from geekgonecrazy/bugfix-578

allow comma after markdown quote
parents a6f57404 e8277984
No related merge requests found
......@@ -13,7 +13,7 @@ class Markdown
# Process MD like for strong, italic and strike
msg = msg.replace(/(\ |_|\~|\`|^)\*([^*]+)\*(\ |_|\~|\`|$)/gm, '$1<span class="copyonly">*</span><strong>$2</strong><span class="copyonly">*</span>$3')
msg = msg.replace(/(\ |\*|\~|\`|>|^)\_([^_]+)\_(\ |\*|\~|\`|<|$)/gm, '$1<span class="copyonly">_</span><em>$2</em><span class="copyonly">_</span>$3')
msg = msg.replace(/(\ |\*|_|\~|>|^)\`([^`]+)\`(\ |\*|_|\~|<|$)/gm, '$1<span class="copyonly">`</span><code class="inline">$2</code><span class="copyonly">`</span>$3')
msg = msg.replace(/(\ |\*|_|\~|>|^)\`([^`]+)\`(\ |\*|\,|\.|_|\~|<|$)/gm, '$1<span class="copyonly">`</span><code class="inline">$2</code><span class="copyonly">`</span>$3')
msg = msg.replace(/(\ |\*|_|\`|>|^)\~{1,2}([^~]+)\~{1,2}(\ |\*|_|\`|<|$)/gm, '$1<span class="copyonly">~</span><strike>$2</strike><span class="copyonly">~</span>$3')
msg = msg.replace(/^&gt;(.*)$/gm, '<blockquote><span class="copyonly">&gt;</span>$1</blockquote>')
msg = msg.replace(/<\/blockquote>\n<blockquote>/gm, '</blockquote><blockquote>')
......
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