如何在 Hugo 图像标签标题元素中插入换行符?

Phi*_*ner 6 markdown line-breaks hugo blogdown hugo-shortcode

我正在使用 blogdown 和 kakawait/hugo-tranquilpeak-theme 来写一篇简单的降价博客文章。当我添加带有短代码选项标签的图像时,例如

{{< image classes="fancybox right clear" src="image2.png"     
thumbnail="http://google.fr/images/image125.png" group="group:travel"   
thumbnail-width="150px" thumbnail-height="300px" title="A beautiful    
sunrise" >}}
Run Code Online (Sandbox Code Playgroud)

我无法打破图像的标题。我现在有

A beautiful image
Run Code Online (Sandbox Code Playgroud)

但我愿意

A beautiful 
image
Run Code Online (Sandbox Code Playgroud)

顺便说一句,这些中断:

\n
<br>
<br />
Run Code Online (Sandbox Code Playgroud)

不要为我工作。知道如何解决这个问题吗?

Way*_*lan 0

HTML5规范规定:

如果标题属性的值包含“LF”(U+000A) 字符,则内容将分为多行。每个“LF”(U+000A) 字符代表一个换行符。

您生成的 HTML 是什么样子的?换行符是否被删除?如果是这样,那就是您所使用的工具的问题。您可能需要提交错误报告。