© Thomas Mailund 2019
T. MailundIntroducing Markdown and Pandochttps://doi.org/10.1007/978-1-4842-5149-2_8

8. Metadata

Thomas Mailund1 
(1)
Aarhus N, Denmark
 
If you go back and look at the standalone HTML document we looked at in Chapter 5, the document was this:
# This is a test document
Here is some text in the document.
  * This is a list
  * With two items
We compiled it like this
pandoc --standalone -o output.html input.md
You should get the warning
[WARNING] This document format requires a nonempty
<title> element.
Please specify either 'title' or 'pagetitle' in
the metadata,
e.g. by using --metadata pagetitle="..." on the
command line.
Falling back to 'input'
and the title in your document will then, just as the warning says, look like this:
<title>input</title> ...

Get Introducing Markdown and Pandoc: Using Markup Language and Document Converter now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.