Skip to content

Commit

Permalink
Fix images (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
12joan committed Jan 31, 2023
1 parent 622feb6 commit aa05fc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ describe('deserializeMd', () => {
<hp>No </hp>
<himg
url="https://example.com/example.png"
caption={<htext>inline</htext>}
caption={
<fragment>
<htext>inline</htext>
</fragment>
}
>
<htext />
</himg>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const remarkDefaultElementRules: RemarkElementRules<Value> = {
type: getPluginType(options.editor, ELEMENT_IMAGE),
children: [{ text: '' } as TText],
url: node.url,
caption: { text: node.alt } as TText,
caption: [{ text: node.alt } as TText],
}),
},
blockquote: {
Expand Down

0 comments on commit aa05fc6

Please sign in to comment.