mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-14 20:21:43 +03:00
rte: change list behaviour in markdown mode
This commit is contained in:
parent
9946cadc2d
commit
f5b52fb488
1 changed files with 2 additions and 2 deletions
|
@ -487,8 +487,8 @@ export default class MessageComposerInput extends React.Component {
|
||||||
'strike': (text) => `~~${text}~~`,
|
'strike': (text) => `~~${text}~~`,
|
||||||
'code-block': (text) => `\`\`\`\n${text}\n\`\`\``,
|
'code-block': (text) => `\`\`\`\n${text}\n\`\`\``,
|
||||||
'blockquote': (text) => text.split('\n').map((line) => `> ${line}\n`).join(''),
|
'blockquote': (text) => text.split('\n').map((line) => `> ${line}\n`).join(''),
|
||||||
'unordered-list-item': (text) => text.split('\n').map((line) => `- ${line}\n`).join(''),
|
'unordered-list-item': (text) => text.split('\n').map((line) => `\n- ${line}`).join(''),
|
||||||
'ordered-list-item': (text) => text.split('\n').map((line, i) => `${i + 1}. ${line}\n`).join(''),
|
'ordered-list-item': (text) => text.split('\n').map((line, i) => `\n${i + 1}. ${line}`).join(''),
|
||||||
}[command];
|
}[command];
|
||||||
|
|
||||||
if (modifyFn) {
|
if (modifyFn) {
|
||||||
|
|
Loading…
Reference in a new issue