将 rmarkdown html 输出的标题设为粗体并分为 2 行

Mar*_*rri 2 r r-markdown

我尝试使用以下代码来调整正文并使标题变为粗体。我想选择长标题中换行符的位置,但是当我编织 rmd 文件时,标题部分不会发生任何样式编辑。

---
title: "my really really really really \n  really really long title"
author: "person"
date: "4/24/2020"
output:
  html_document:
    toc: true
    toc_float:
      collapsed: true
      smooth_scroll: false
    toc_depth: 4
    theme: yeti 
    highlight: tango
    code_folding: show
---

<style>
body {
text-align: justify}
title {
font-style: bold}
</style>
Run Code Online (Sandbox Code Playgroud)

Mar*_*rri 6

您可以将标题格式设置为YAML. **text**用于使标题加粗并<br>换​​行。

---
title: "**my really really really really <br>  really really long title**"
author: "person"
date: "4/24/2020"
output:
  html_document:
    toc: true
    toc_float:
      collapsed: true
      smooth_scroll: false
    toc_depth: 4
    theme: yeti 
    highlight: tango
    code_folding: show
---
Run Code Online (Sandbox Code Playgroud)

我的标题真的真的真的
真的很长