|
|
|
|
@ -46,7 +46,7 @@ class MarkdownCode |
|
|
|
|
|
|
|
|
|
for part, index in msgParts |
|
|
|
|
# Verify if this part is code |
|
|
|
|
codeMatch = part.match(/^```(\w*[\n\ ]?)([\s\S]*?)```+?$/) |
|
|
|
|
codeMatch = part.match(/^```(.*[\n\ ]?)([\s\S]*?)```+?$/) |
|
|
|
|
|
|
|
|
|
if codeMatch? |
|
|
|
|
# Process highlight if this part is code |
|
|
|
|
|