Markdown: delete remaining pre-split relics

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
pull/21833/head
Johannes Löthberg 2017-01-19 11:55:36 +01:00
parent 14ead373e2
commit 9c1c657a1e
3 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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();
}
}

View File

@ -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);