You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The title of the document is set to the value of title in the front matter (resolved by e592459)
By default, title is set to either the heading level 1 on the top of the Markdown document
By default, title is set to the name of the Markdown file if a heading level 1 doesn't exist inside it (resolved by e592459)
Examples
If the content of example-lyrics.md is:
---
title: Never Gonna Give You Up
---
We're no strangers to love
You know the rules and so do I
or
# Never Gonna Give You Up
We're no strangers to love
You know the rules and so do I
The title should then be added as a <h1> element to the <body> of the generated HTML file:
<html><head>
...
<title>Never Gonna Give You Up</title></head><body><h1>Never Gonna Give You Up</h1><p>We're no strangers to love</p><p>You know the rules and so do I</p></body></html>
If the content of example-lyrics.md is:
We're no strangers to love
You know the rules and so do I
The generated HTML file should be:
<html><head>
...
<title>example-lyrics</title></head><body><h1>example-lyrics</h1><p>We're no strangers to love</p><p>You know the rules and so do I</p></body></html>
The text was updated successfully, but these errors were encountered:
Requirements
title
in the front matter (resolved by e592459)title
is set to either the heading level 1 on the top of the Markdown documenttitle
is set to the name of the Markdown file if a heading level 1 doesn't exist inside it (resolved by e592459)Examples
If the content of
example-lyrics.md
is:or
The title should then be added as a
<h1>
element to the<body>
of the generated HTML file:If the content of
example-lyrics.md
is:The generated HTML file should be:
The text was updated successfully, but these errors were encountered: