Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is There a Markdown Syntax for Titles, Author, Etc?

Tags:

markdown

I just saw a video on Markdown which uses a percent sign (%) to add a title and author to a document. Here is the video clip (strating from the relevant section): https://youtu.be/hpAJMSS8pvs?t=5m30s

I have not been able to reproduce this feature, though (I've tried in different markdown editors -- like StackEdit).

Is this a different version of Markdown? Do I just need a different editor?

In short, any idea how to do this?

Thanks.

like image 327
Moshe Avatar asked Nov 10 '17 11:11

Moshe


People also ask

How do you write a title in Markdown?

Headings. To create a heading, add number signs ( # ) in front of a word or phrase. The number of number signs you use should correspond to the heading level. For example, to create a heading level three ( <h3> ), use three number signs (e.g., ### My Header ).

Is Markdown a syntax?

Markdown's syntax is intended for one purpose: to be used as a format for writing for the web. Markdown is not a replacement for HTML, or even close to it. Its syntax is very small, corresponding only to a very small subset of HTML tags. The idea is not to create a syntax that makes it easier to insert HTML tags.

How many headings are in a Markdown?

Headers. HTML headings are produced by placing a number of hashes before the header text corresponding to the level of heading desired (HTML offers six levels of headings).

Do writers use Markdown?

Markdown is gaining popularity among writers, developers, and content creators due to its versatility. It is a free markup language you can use to format plain text and generate different outputs.


1 Answers

Yes, some markdown engines support this using metadata blocks.

The following is called yaml_metadata_block by pandoc (this format is supported by Jekyll, StackEdit and quite a few others):

---
title: my title
author: my name
date: today
---

or equivalently:

---
title: my title
author: my name
date: today
...

Pandoc also supports the pandoc_title_block format:

% title
% author(s) (separated by semicolons)
% date
like image 174
mb21 Avatar answered Sep 19 '22 15:09

mb21