Closed marc-hughes closed 1 year ago
Image captions have their own slate sub-editor, so the content in those captions must follow the document-level normalization rules we have in place.
Before, a caption might contain multiple inline elements such as: caption: [ {text:"hello"}, {text: "world"} ]
caption: [ {text:"hello"}, {text: "world"} ]
Now, those will get wrapped up into a paragraph. caption: [ {type: 'p', children:[{text:"hello"}, {text: "world"} ]]
caption: [ {type: 'p', children:[{text:"hello"}, {text: "world"} ]]
This fixes an issue in chemistry import causing subscript text having extra linebreaks.
Before:
After:
Image captions have their own slate sub-editor, so the content in those captions must follow the document-level normalization rules we have in place.
Before, a caption might contain multiple inline elements such as:
caption: [ {text:"hello"}, {text: "world"} ]
Now, those will get wrapped up into a paragraph.
caption: [ {type: 'p', children:[{text:"hello"}, {text: "world"} ]]
This fixes an issue in chemistry import causing subscript text having extra linebreaks.
Before:
After:
Before:
After: