Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
fixed image caption with styles export
Browse files Browse the repository at this point in the history
  • Loading branch information
iskaktoltay committed Nov 5, 2024
1 parent 8056cba commit 9925fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/packages/app/utils/blocks-to-markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function convertBlockToHtml(
case 'image':
const {url, name, width} = block.props
const titleWithWidth = `${name} | width=${width}`
return `<img src="${url}" alt='${contentHtml}' title="${titleWithWidth}">`
return `<img src="${url}" alt=\"${contentHtml}\" title="${titleWithWidth}">`
case 'codeBlock':
return `<pre><code class="language-${
block.props.language || 'plaintext'
Expand Down

0 comments on commit 9925fa6

Please sign in to comment.