Add a call to doFormatText inside of the markdown paragraph handler

Этот коммит содержится в:
Pat Lathem
2015-10-21 14:39:33 -05:00
родитель 7ea8268ae8
Коммит 7e24890bd3

Просмотреть файл

@@ -3,6 +3,7 @@
const TextFormatting = require('./text_formatting.jsx');
const Utils = require('./utils.jsx');
const Emoticons = require('./emoticons.jsx');
const marked = require('marked');
@@ -53,6 +54,8 @@ export class MattermostMarkdownRenderer extends marked.Renderer {
}
paragraph(text) {
text = TextFormatting.doFormatText(text, this.options)
if (this.formattingOptions.singleline) {
return `<p class="markdown__paragraph-inline">${text}</p>`;
}