Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support embedded svg images in publishToConfluence #1301

Merged
merged 2 commits into from
Nov 20, 2023

Conversation

PacoVK
Copy link
Collaborator

@PacoVK PacoVK commented Nov 20, 2023

closes #1300

All Submissions:

  • Did you update the changelog.adoc?

Copy link

netlify bot commented Nov 20, 2023

Deploy Preview for dtc-docs-preview ready!

Name Link
🔨 Latest commit 3182d3e
🔍 Latest deploy log https://app.netlify.com/sites/dtc-docs-preview/deploys/655bb029cf0e720008a7b402
😎 Deploy Preview https://deploy-preview-1301--dtc-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@rdmueller rdmueller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this all what was needed? Looks good to me!

@PacoVK
Copy link
Collaborator Author

PacoVK commented Nov 20, 2023

Is this all what was needed? Looks good to me!

Indeed :D The svg is a exotic MIME compared to all others (few exceptions apply, but i think we can add them later if necessary) Eg png is image/png jpg image/jpg and only svg is image/svg+xml This breaks the code because we split the MIME by "/" and the file would become svg+xml (uri decoded "svg xml") which is then invalid :P

@PacoVK PacoVK merged commit 9863cad into docToolchain:ng Nov 20, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

publishToConfluence:Cannot handle embedded SVG images
2 participants