在Github自述文件中浮动图像

ytt*_*ium 18 markdown image github floating

我该怎么做呢?将以下代码放入 Markdown生成器可以获得 所需的输出

<div style="float: left"><img src="http://ompldr.org/vaDU5NQ/scrotter.png"/>
</div>
I'm trying not to, kid. Don't act so surprised, Your Highness. You weren't
on any mercy mission this time. Several transmissions were beamed to this
ship by Rebel spies. I want to know what happened to the plans they sent
you. Kid, I've flown from one side of this galaxy to the other.

I've seen a lot of strange stuff, but I've never seen anything to make me
believe there's one all-powerful Force controlling everything.
Run Code Online (Sandbox Code Playgroud)

但是,将此代码添加到我的README.md文件使其成为内联图像而不是浮动.

我怎么能解决这个问题?这是一个Github的bug吗?

Pau*_*ock 46

我知道这个帖子很旧,但对于任何有兴趣的人,你都可以在GitHub上使用<img align="left" src="img.jpg"><img align="right" src="img.jpg">浮动图像.

  • 我认为 GitHub ReadMe 中的 Markdown 不需要验证为 HTML5。它用于记录代码存储库;不是为了成为一个网站。 (2认同)