aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-11-30 12:22:56 +0100
committerJohn MacFarlane <[email protected]>2025-11-30 12:22:56 +0100
commit176d9be0f3248eba25779b60edc5d01db25dc084 (patch)
tree20b1df8118aefdd1efd3ca283ec1d93f61434070
parentaf9443a981063ab0aad27e96a039de2ca5543c99 (diff)
Change message for missing HTML title warning.
Suggest setting the `pagetitle` variable instead of setting `title` in metadata, which also has the effect of adding an h1 element. Closes #11307.
-rw-r--r--src/Text/Pandoc/Logging.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Logging.hs b/src/Text/Pandoc/Logging.hs
index d67d11e01..880bfb068 100644
--- a/src/Text/Pandoc/Logging.hs
+++ b/src/Text/Pandoc/Logging.hs
@@ -377,8 +377,7 @@ showLogMessage msg =
NoTitleElement fallback ->
"This document format requires a nonempty <title> element.\n" <>
"Defaulting to '" <> fallback <> "' as the title.\n" <>
- "To specify a title, use 'title' in metadata or " <>
- "--metadata title=\"...\"."
+ "To specify a title, use --variable pagetitle=\"...\"."
NoLangSpecified ->
"No value for 'lang' was specified in the metadata.\n" <>
"It is recommended that lang be specified for this format."