【问题标题】:Inline html in Jekyll github-pagesJekyll github-pages 中的内联 html
【发布时间】:2013-12-16 19:07:31
【问题描述】:

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

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

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

canopy - 使用 Selenium 进行 F#rictionless 网络测试。

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

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

我是否需要做一些特别的事情才能让 Jekyll 识别内联 html?

【问题讨论】:

    标签: markdown jekyll github-pages


    【解决方案1】:

    尝试在不可破坏的空格&amp;nbsp;后面加一个空格

    <img ... width="32" />&nbsp; [canopy](http://lefthandedgoat....) - F#rict....
    

    【讨论】:

    • 已经尝试了这两种方法并删除了  将任何内容与 img 放在同一行会产生错误,如果我将 im 之后的内容放在新行上,它会起作用,但随后我会在最终的 html 中得到一个 br 插入器
    猜你喜欢
    • 2021-12-31
    • 2015-11-29
    • 1970-01-01
    • 2023-01-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多