mirror of https://github.com/vector-im/riot-web
Markdown: delete remaining pre-split relics
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>pull/21833/head
parent
14ead373e2
commit
9c1c657a1e
|
@ -59,7 +59,7 @@ export default class Markdown {
|
|||
return is_plain;
|
||||
}
|
||||
|
||||
toHTML(html) {
|
||||
toHTML() {
|
||||
const real_paragraph = this.renderer.paragraph;
|
||||
|
||||
this.renderer.paragraph = function(node, entering) {
|
||||
|
|
|
@ -526,7 +526,7 @@ export default class MessageComposerInput extends React.Component {
|
|||
if (md.isPlainText()) {
|
||||
contentText = md.toPlaintext();
|
||||
} else {
|
||||
contentHTML = md.toHTML(true);
|
||||
contentHTML = md.toHTML();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -331,7 +331,7 @@ module.exports = React.createClass({
|
|||
MatrixClientPeg.get().sendHtmlMessage(this.props.room.roomId, contentText, htmlText);
|
||||
}
|
||||
else {
|
||||
const contentText = mdown.toPlaintext(false);
|
||||
const contentText = mdown.toPlaintext();
|
||||
sendMessagePromise = isEmote ?
|
||||
MatrixClientPeg.get().sendEmoteMessage(this.props.room.roomId, contentText) :
|
||||
MatrixClientPeg.get().sendTextMessage(this.props.room.roomId, contentText);
|
||||
|
|
Loading…
Reference in New Issue