-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
asciidoc floating images not working #984
Comments
GitHub strips away CSS classes and inline CSS styles, so it's a challenge to pass on this information. We might be able to set the HTML 4 attribute, |
I worked around it by passing in raw HTML, like this:
which works fine with github's current stylesheet. |
Yep, that's effectively what we could do in the core converter when we detect we're running on GitHub. |
Any chance to get the feature working on github wikis? |
FYI, GitHub does use Asciidoctor. You can check the version it's running by including the following in your document:
As of right now, it's Asciidoctor 1.5.6.1. See https://github.com/opendevise/asciidoc-samples/blob/master/runtime.adoc for more information. The problem here isn't that GitHub has limited support for AsciiDoc (aside from missing support for the include directive). It's that GitHub doesn't provide the necessary supporting styles needed to interpret certain hints, such as float. AsciiDoc output can't actually float an image. It needs help from CSS to accomplish that. But it's not getting that help.
I think you filed it in the wrong repository. As I wrote in response to that issue, the problem is with Gollum, not github/markup (as far as I can tell). |
I'm also affected by this issue: In my case it is a supposedly-right-floated shield image that is meant to show starting with which version certain feature is available. However, on GitHub the image is not correctly floated. I verified that outside GitHub it does work as intended using Asciidoctor.js Live Preview extension for my browser. Also, GitHub adds a link to the image, even though there is none in the The relevant code is:
|
A couple of years later, still not working. Wakey, wakey, GitHub. |
I've also met the issue. Will be awesome if will be fixed! |
I, too, have found myself among those who are unable to float when using Asciidoc in my repositories here, and I'm sure I need not explain how much of a hindrance it is to lack the ability to 🦆 when working with 🍑🗝️📜 in the ☁️ ....I'll see myself out. 😊 |
Running into this issue myself. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Ping the issue one more time to keep it open. |
2017,2021,2025, still here! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still not stale AFAIK |
Floating images via [role=left] does not work in the github rendered version of asciidoc. See for example:
https://github.com/kovidgoyal/kitty/blob/c8fc0394e3cca8f659d8833aab8bb25762865be9/README.asciidoc
That document when redered using asciidoctor has a floating image, as expected, but not when rendered by github.
The text was updated successfully, but these errors were encountered: