mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
fix double-nested code blocks & bump md-serializer
This commit is contained in:
parent
864a33f978
commit
ab41212258
2 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@
|
||||||
"slate": "^0.33.4",
|
"slate": "^0.33.4",
|
||||||
"slate-react": "^0.12.4",
|
"slate-react": "^0.12.4",
|
||||||
"slate-html-serializer": "^0.6.1",
|
"slate-html-serializer": "^0.6.1",
|
||||||
"slate-md-serializer": "matrix-org/slate-md-serializer#1580ed67",
|
"slate-md-serializer": "matrix-org/slate-md-serializer#f7c4ad3",
|
||||||
"sanitize-html": "^1.14.1",
|
"sanitize-html": "^1.14.1",
|
||||||
"text-encoding-utf-8": "^1.0.1",
|
"text-encoding-utf-8": "^1.0.1",
|
||||||
"url": "^0.11.0",
|
"url": "^0.11.0",
|
||||||
|
|
|
@ -1370,7 +1370,7 @@ export default class MessageComposerInput extends React.Component {
|
||||||
case 'numbered-list':
|
case 'numbered-list':
|
||||||
return <ol {...attributes}>{children}</ol>;
|
return <ol {...attributes}>{children}</ol>;
|
||||||
case 'code':
|
case 'code':
|
||||||
return <pre {...attributes}><code {...attributes}>{children}</code></pre>;
|
return <pre {...attributes}>{children}</pre>;
|
||||||
case 'link':
|
case 'link':
|
||||||
return <a {...attributes} href={ node.data.get('href') }>{children}</a>;
|
return <a {...attributes} href={ node.data.get('href') }>{children}</a>;
|
||||||
case 'pill': {
|
case 'pill': {
|
||||||
|
|
Loading…
Reference in a new issue