-
DescriptionI'm working on a book. I want to manipulate the title of chapters. Here's my code: function Meta(meta)
if meta.essential == true then
meta.title = '⮞ ' .. pandoc.utils.stringify(meta.title) .. ' ⮜'
end
if meta.essential == false then
meta.title = '⋯ ' .. pandoc.utils.stringify(meta.title) .. ' ⋯'
end
-- If essential is not set, don't do anything
return meta
end This works, kinda sorta. E.g. title from: ---
title: "This is chapter two"
essential: true
--- will be "⮞ 2 This is chapter two ⮜". However:
Essentially I want to be able to manipulate the original Is there a way to do this? |
Beta Was this translation helpful? Give feedback.
Answered by
mcanouil
Jul 10, 2025
Replies: 1 comment 10 replies
-
You can't. Note that if your book is HTML, you can use CSS to add this to your title. |
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
itamarst
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can't.
That's one of the few YAML metadata Quarto uses to layout the structure.
Note that if your book is HTML, you can use CSS to add this to your title.