diff --git a/src/components/app/MessageTemplate.vue b/src/components/app/MessageTemplate.vue index 9609f27..65447b8 100644 --- a/src/components/app/MessageTemplate.vue +++ b/src/components/app/MessageTemplate.vue @@ -505,36 +505,4 @@ export default { @media (max-width: 468px) { } - - - + \ No newline at end of file diff --git a/src/components/app/SimpleMarkdown.vue b/src/components/app/SimpleMarkdown.vue index 1272ee2..393abdb 100644 --- a/src/components/app/SimpleMarkdown.vue +++ b/src/components/app/SimpleMarkdown.vue @@ -18,4 +18,38 @@ } } } - \ No newline at end of file + + + \ No newline at end of file diff --git a/src/utils/markdown-rules/customEmoji.js b/src/utils/markdown-rules/customEmoji.js index 7ef9852..626468a 100644 --- a/src/utils/markdown-rules/customEmoji.js +++ b/src/utils/markdown-rules/customEmoji.js @@ -15,7 +15,7 @@ export default (order) => { return { }, html: function(node, output) { return SimpleMarkdown.htmlTag('img', '', { - class: "emoji", + class: "emoji custom-emoji", title: node.name, src: `${config.domain}/media/${node.id}`, alt: node.name diff --git a/src/utils/markdown-rules/link.js b/src/utils/markdown-rules/link.js index 413394e..423bd2a 100644 --- a/src/utils/markdown-rules/link.js +++ b/src/utils/markdown-rules/link.js @@ -34,7 +34,7 @@ export default (order) => { return { html: function(node, output) { return SimpleMarkdown.htmlTag("a", output(node.content), { href: node.url, - class: "msg-link", + class: "link", target: "_blank" }) } diff --git a/src/utils/markdown-rules/strikeout.js b/src/utils/markdown-rules/strikeout.js index 1b1a449..8aa5b1e 100644 --- a/src/utils/markdown-rules/strikeout.js +++ b/src/utils/markdown-rules/strikeout.js @@ -13,6 +13,8 @@ export default (order) => { return { }, html: function(node, output) { - return SimpleMarkdown.htmlTag("s", output(node.content)) + return SimpleMarkdown.htmlTag("s", output(node.content), { + class: "strikeout" + }) } }} \ No newline at end of file diff --git a/src/utils/markdown-rules/underline.js b/src/utils/markdown-rules/underline.js index 56f9319..6f9358f 100644 --- a/src/utils/markdown-rules/underline.js +++ b/src/utils/markdown-rules/underline.js @@ -13,6 +13,8 @@ export default (order) => { return { }, html: function(node, output) { - return SimpleMarkdown.htmlTag("u", output(node.content)) + return SimpleMarkdown.htmlTag("u", output(node.content), { + class: "underline" + }) } }} \ No newline at end of file diff --git a/src/utils/messageFormatter.js b/src/utils/messageFormatter.js index 3ebc6a0..65a558e 100644 --- a/src/utils/messageFormatter.js +++ b/src/utils/messageFormatter.js @@ -33,6 +33,11 @@ const rules = { inlineCode: Object.assign({}, SimpleMarkdown.defaultRules.inlineCode, { order: order++, + html: function(node, parse, state) { + return SimpleMarkdown.htmlTag("code", SimpleMarkdown.sanitizeText(node.content), { + class: "inline-code" + }) + } }), text: Object.assign({}, SimpleMarkdown.defaultRules.text, {