如何在rosdown的ioslides演示文稿标题中强制换行?

时间:2015-06-04 13:05:47

标签: r r-markdown

html_document输出的解决方案不适用于ioslides_presentation输出。如何在特定位置强制更改标题?

html_document输出的解决方案会产生非常奇怪的结果。

---
title: | 
  | This is an extremely long title
  | with a desired line break at a 
  | specific location
output: ioslides_presentation
---

1 个答案:

答案 0 :(得分:5)

好吧,我自己也搞清楚了。您可以在标题中添加html标记,例如<br>。这有效:

---
title: This is an extremely long <br> title with a <br> desired 
  line break <br> at a specific <br> location
output: ioslides_presentation
---