Add a call to doFormatText inside of the markdown paragraph handler
Этот коммит содержится в:
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
const TextFormatting = require('./text_formatting.jsx');
|
const TextFormatting = require('./text_formatting.jsx');
|
||||||
const Utils = require('./utils.jsx');
|
const Utils = require('./utils.jsx');
|
||||||
|
const Emoticons = require('./emoticons.jsx');
|
||||||
|
|
||||||
const marked = require('marked');
|
const marked = require('marked');
|
||||||
|
|
||||||
@@ -53,6 +54,8 @@ export class MattermostMarkdownRenderer extends marked.Renderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
paragraph(text) {
|
paragraph(text) {
|
||||||
|
text = TextFormatting.doFormatText(text, this.options)
|
||||||
|
|
||||||
if (this.formattingOptions.singleline) {
|
if (this.formattingOptions.singleline) {
|
||||||
return `<p class="markdown__paragraph-inline">${text}</p>`;
|
return `<p class="markdown__paragraph-inline">${text}</p>`;
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user