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

HTML <img> Tags Don't Display Images on Confluence #491

Open
AlexanderTheGrey opened this issue Aug 20, 2024 · 0 comments
Open

HTML <img> Tags Don't Display Images on Confluence #491

AlexanderTheGrey opened this issue Aug 20, 2024 · 0 comments
Labels

Comments

@AlexanderTheGrey
Copy link

What happened?

When including something like this:

<img src="test.png" width="700" height="100%" style="object-fit:contain;" />

The image is not rendered on Confluence.

However, when including this:

![](test.png)

The image displays correctly on Confluence.

The HTML tag should correctly display the image on Confluence.

How can we reproduce the behavior you experienced?

Try syncing a Markdown file to Confluence with the exact HTML tag.

Further Information (please complete the following information)

  • Mark Version (mark --version): 10.0.1
  • Mark Parameters: [e.g. --drop-h1 --title-from-h1]
    • -b '{hostname}'
    • --space '{space}'
    • -p $CONFLUENCE_PAT
    • --title-from-h1
    • --drop-h1
    • -f '/docs/docs/**/*.md'
  • Confluence Hosting: Server
  • Confluence Version: 7.19.25
  • Environment specific Information: Docker container used in a Bash script

Logs or other output

Dry Run Output with Markdown-specific Image Embedding (Works Correctly):

<p><ac:image><ri:url ri:value="test.png"/></ac:image></p>

Dry Run Output with HTML Tag (Doesn't Work):

<img src="test.png" width="700" height="100%" style="object-fit:contain;"/>

Confluence Attachment URL with Markdown-specific Image Embedding (Works Correctly):

https://{hostname}/download/attachments/{id}/._test.png?version=1&modificationDate=1724192742171&api=v2

Confluence Attachment URL with HTML Tag (Doesn't Work):

https:/{hostname}/display/{space}/images/test.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant