Jekyll github-pages中的内联html

时间:2013-11-30 20:18:56

标签: markdown jekyll github-pages

我在github页面上托管的Jekyll网站上使用的一个.md文件中有以下内容:

<img src="https://lefthandedgoat.github.io/canopy/canopy_orig.jpg" width="32" />&nbsp;[canopy](http://lefthandedgoat.github.io/canopy/) - F#rictionless web testing with Selenium.

github文件预览和stackoverflow都正确地解释了这个降价:

canopy - 使用Selenium进行F#无故障网络测试。

但是当我发布到github-pages时,我收到一封电子邮件,说有一个Jekyll错误。我安装了Jekyll gem并在本地运行jekyll serve来检查错误并得到了这个:

 ___________________________________________________________________________
| Maruku tells you:
+---------------------------------------------------------------------------
| Could you please format this better?
| I see that "&nbsp;[canopy](http://lefthandedgoat.github.io/canopy/) - F#rictionless web testing with Selenium." is lef
t after the raw HTML.
| At line 150
|   raw_html     |<img src="https://lefthandedgoat.github.io/canopy/canopy_orig.jpg" width="32" />&nbsp;[canopy](http://l
efthandedgoat.github.io/canopy/) - F#rictionless web testing with Selenium.|
+---------------------------------------------------------------------------

我是否必须做一些特别的事情让Jekyll识别内联HTML?

1 个答案:

答案 0 :(得分:0)

尝试在不可破坏空间&nbsp;

之后放置一个空格
<img ... width="32" />&nbsp; [canopy](http://lefthandedgoat....) - F#rict....