如何在内容的 table 和 YAML 标题之间添加 space?
How can I add space between the table of contents and the YAML title?
一个基本的 R markdown 脚本:
---
title: "Untitled"
author: "Example example"
output:
html_document:
df_print: paged
toc: true
number_sections: true
---
# ALPHA Header
## Alpha sub-1
## Alpha sub-2
## Alpha sub-3
将生成类似于此的内容:
我想在 YAML headers 和内容的 table 之间填充 space - 但我不确定如何。我可以指定 CSS 选择器和样式,但这仅适用于自动生成目录后的 Markdown。
只需在您的作者或标题字段中添加 HTML 换行符:
author: "Example example<br><br>"
或者有一定身高的div:
author: "Example example<div style=\"height: 100px;\"></div>"
一个基本的 R markdown 脚本:
---
title: "Untitled"
author: "Example example"
output:
html_document:
df_print: paged
toc: true
number_sections: true
---
# ALPHA Header
## Alpha sub-1
## Alpha sub-2
## Alpha sub-3
将生成类似于此的内容:
我想在 YAML headers 和内容的 table 之间填充 space - 但我不确定如何。我可以指定 CSS 选择器和样式,但这仅适用于自动生成目录后的 Markdown。
只需在您的作者或标题字段中添加 HTML 换行符:
author: "Example example<br><br>"
或者有一定身高的div:
author: "Example example<div style=\"height: 100px;\"></div>"