Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to set the dynamic part of title as bold in a quarto document rendered as html?

How to set only the dynamic part of the title specified in the YAML (params$mytitle in the minimal example below) as bold in the rendered HTML? Tried this, but did not work.

---
params:
  mytitle: "title1"
title: "`r paste('this is',params$mytitle)`"
format: html
editor: visual
---

## Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You can use

---
params:
  mytitle: "title1"
title: "this is **{{< meta params.mytitle >}}**"
format: html
editor: visual
---

to inject the parameter and make it even more bold. I see this output:
enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading