fix double-nested code blocks & bump md-serializer

This commit is contained in:
Matthew Hodgson 2018-05-26 00:37:21 +01:00
parent 864a33f978
commit ab41212258
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@
"slate": "^0.33.4",
"slate-react": "^0.12.4",
"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",
"text-encoding-utf-8": "^1.0.1",
"url": "^0.11.0",

View file

@ -1370,7 +1370,7 @@ export default class MessageComposerInput extends React.Component {
case 'numbered-list':
return <ol {...attributes}>{children}</ol>;
case 'code':
return <pre {...attributes}><code {...attributes}>{children}</code></pre>;
return <pre {...attributes}>{children}</pre>;
case 'link':
return <a {...attributes} href={ node.data.get('href') }>{children}</a>;
case 'pill': {