Markdown: delete remaining pre-split relics

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
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; return is_plain;
} }
toHTML(html) { toHTML() {
const real_paragraph = this.renderer.paragraph; const real_paragraph = this.renderer.paragraph;
this.renderer.paragraph = function(node, entering) { this.renderer.paragraph = function(node, entering) {

View file

@ -526,7 +526,7 @@ export default class MessageComposerInput extends React.Component {
if (md.isPlainText()) { if (md.isPlainText()) {
contentText = md.toPlaintext(); contentText = md.toPlaintext();
} else { } 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); MatrixClientPeg.get().sendHtmlMessage(this.props.room.roomId, contentText, htmlText);
} }
else { else {
const contentText = mdown.toPlaintext(false); const contentText = mdown.toPlaintext();
sendMessagePromise = isEmote ? sendMessagePromise = isEmote ?
MatrixClientPeg.get().sendEmoteMessage(this.props.room.roomId, contentText) : MatrixClientPeg.get().sendEmoteMessage(this.props.room.roomId, contentText) :
MatrixClientPeg.get().sendTextMessage(this.props.room.roomId, contentText); MatrixClientPeg.get().sendTextMessage(this.props.room.roomId, contentText);