27

我该怎么做呢?将以下代码放入 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.

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

我该如何解决这个问题?它是一个 Github 错误吗?

4

2 回答 2

66

我知道这个线程已经过时了,但是对于任何有兴趣的人,您可以在 GitHub 上使用<img align="left" src="img.jpg">和浮动图像。<img align="right" src="img.jpg">

于 2016-03-17T20:15:54.573 回答
2

我认为这是 GitHub 的安全问题。我的理解是它们会剥离所有 HTML 属性,例如style使用可能的href.

于 2013-01-20T18:02:23.627 回答