diff options
| author | John MacFarlane <[email protected]> | 2025-11-30 12:22:56 +0100 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-11-30 12:22:56 +0100 |
| commit | 176d9be0f3248eba25779b60edc5d01db25dc084 (patch) | |
| tree | 20b1df8118aefdd1efd3ca283ec1d93f61434070 /src | |
| parent | af9443a981063ab0aad27e96a039de2ca5543c99 (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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/Logging.hs | 3 |
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." |
