Skip to content

Commit

Permalink
Fix svg relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
ggodlewski committed Sep 23, 2023
1 parent 062f895 commit e99613b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/odt/MarkdownChunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function chunkToText(chunk: MarkdownChunk) {
case '/A':
return `](${chunk.payload.href})`;
case 'SVG/':
return `<object type="image/svg+xml" data="${chunk.payload.href}" ></object>`;
return `![](${chunk.payload.href})`;
case 'IMG/':
return `![](${chunk.payload.href})`;
case 'EMB_SVG':
Expand Down
2 changes: 1 addition & 1 deletion test/md/embedded-diagram-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ after

Image from file:

<object type="image/svg+xml" data="gdoc:1jEOoXqPeqiU_z2QLiC-w6TfPjmiJY4wyLZqoG-OF9Xc" ></object>
![](gdoc:1jEOoXqPeqiU_z2QLiC-w6TfPjmiJY4wyLZqoG-OF9Xc)

done

Expand Down

0 comments on commit e99613b

Please sign in to comment.