From 176d9be0f3248eba25779b60edc5d01db25dc084 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 30 Nov 2025 12:22:56 +0100 Subject: 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. --- src/Text/Pandoc/Logging.hs | 3 +-- 1 file changed, 1 insertion(+), 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 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." -- cgit v1.2.3