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.
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 ).
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.
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).
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With