You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
/plain command to bypass markdown conversion
This commit is contained in:
@@ -118,7 +118,15 @@ export const CommandMap = {
|
||||
},
|
||||
category: CommandCategories.messages,
|
||||
}),
|
||||
|
||||
plain: new Command({
|
||||
name: 'plain',
|
||||
args: '<message>',
|
||||
description: _td('Sends a message as plain text, without interpreting it as markdown'),
|
||||
runFn: function(roomId, messages) {
|
||||
return success(MatrixClientPeg.get().sendTextMessage(roomId, messages));
|
||||
},
|
||||
category: CommandCategories.messages,
|
||||
}),
|
||||
ddg: new Command({
|
||||
name: 'ddg',
|
||||
args: '<query>',
|
||||
|
||||
Reference in New Issue
Block a user