Mmark-Flavored Markdown Experiments

Meta

This article is written in Markdown and interpreted as Mmark-flavored Markdown by Hugo. Details about how Hugo decides what markup interpreter or renderer to use are at Infinite Ink's Hugo's Markup Languages: AsciiDoc, HTML, Markdown, Org-mode, Pandoc, & reStructuredText.

I'm using this article to do some experiments with Hugo and Mmark-flavored Markdown. I use Mmark includes to make it easy for you to View the Source.

Hugo Tag Experiments

I've tagged this article with tags that include:

  • slash (/)
  • emoji
  • non-ASCII non-emoji Unicode characters, for example ‽ (interrobang) and ℵ

If you are interested in the results of these experiments, click on the relevant tag links at the bottom of this page, for example #🔣symbols🔣.

Rendered Markdown Experiments

Thanks to markdown-it for most of the content of this section! --nm

Headings

h1 Heading

h2 Heading

h3 Heading

h4 Heading

h5 Heading
h6 Heading

Horizontal Rules




Typographic replacements

(c) (C) (r) (R) (tm) (TM) (p) (P) +-

"Smartypants, double quotes" and 'single quotes'

Emphasis

This is bold text

This is bold text

This is italic text

This is italic text

Strikethrough

Blockquotes

Blockquotes can also be nested...

...by using additional greater-than signs right next to each other...

...or with spaces between arrows.

Lists

Unordered

  • Create a list by starting a line with +, -, or *
  • Sub-lists are made by indenting 2 spaces:
    • Marker character change forces new list start:
    • Ac tristique libero volutpat at
    • Facilisis in pretium nisl aliquet
    • Nulla volutpat aliquam velit
  • Very easy!

Ordered

  1. Lorem ipsum dolor sit amet
  2. Consectetur adipiscing elit
  3. Integer molestie lorem at massa

  4. You can use sequential numbers...

  5. ...or keep all the numbers as 1.

Start numbering with offset:

  1. foo
  2. bar

Code

Inline code

Indented code

// Some comments
line 1 of code
line 2 of code
line 3 of code

Block code "fences"

Sample text here...

Syntax highlighting

var foo = function (bar) {
  return bar++;
};

console.log(foo(5));

Tables

OptionDescription
datapath to data files to supply the data that will be passed into templates.
engineengine to be used for processing templates. Handlebars is the default.
extextension to be used for dest files.

Right aligned columns

OptionDescription
datapath to data files to supply the data that will be passed into templates.
engineengine to be used for processing templates. Handlebars is the default.
extextension to be used for dest files.

link text

link with title

Images

Minion
Stormtroopocat
The Stormtroopocat

Like links, Images also have a footnote style syntax

Alt text
The Dojocat

With a reference later in the document defining the URL location:

Subscript / Superscript

  • 19th
  • H2O

Footnotes👣

Footnote 1 link1.

Footnote 2 link2.

Inline footnote3 definition.

Duplicated footnote reference4.

Definition lists

Term 1

: Definition 1 with lazy continuation.

Term 2 with inline markup

: Definition 2

    { some code, part of Definition 2 }

Third paragraph of definition 2.

View the Source

Embedded Mmark Source

*Thanks to [markdown-it](https://github.com/markdown-it/markdown-it)
for most of the content of this section! --nm*


## Headings

# h1 Heading
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading


## Horizontal Rules

___

---

***


## Typographic replacements


(c) (C) (r) (R) (tm) (TM) (p) (P) +-

"Smartypants, double quotes" and 'single quotes'


## Emphasis

**This is bold text**

__This is bold text__

*This is italic text*

_This is italic text_

~~Strikethrough~~


## Blockquotes


> Blockquotes can also be nested...
>> ...by using additional greater-than signs right next to each other...
> > > ...or with spaces between arrows.


## Lists

Unordered

+ Create a list by starting a line with `+`, `-`, or `*`
+ Sub-lists are made by indenting 2 spaces:
  - Marker character change forces new list start:
    * Ac tristique libero volutpat at
    + Facilisis in pretium nisl aliquet
    - Nulla volutpat aliquam velit
+ Very easy!

Ordered

1. Lorem ipsum dolor sit amet
2. Consectetur adipiscing elit
3. Integer molestie lorem at massa


1. You can use sequential numbers...
1. ...or keep all the numbers as `1.`

Start numbering with offset:

57. foo
1. bar


## Code

Inline `code`

Indented code

    // Some comments
    line 1 of code
    line 2 of code
    line 3 of code


Block code "fences"

```
Sample text here...
```

Syntax highlighting

``` js
var foo = function (bar) {
  return bar++;
};

console.log(foo(5));
```

## Tables

| Option | Description |
| ------ | ----------- |
| data   | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext    | extension to be used for dest files. |

Right aligned columns

| Option | Description |
| ------:| -----------:|
| data   | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext    | extension to be used for dest files. |


## Links

[link text](http://dev.nodeca.com)

[link with title](http://nodeca.github.io/pica/demo/ "title text!")



## Images

![Minion](https://octodex.github.com/images/minion.png)
![Stormtroopocat](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat")

Like links, Images also have a footnote style syntax

![Alt text][id]

With a reference later in the document defining the URL location:

[id]: https://octodex.github.com/images/dojocat.jpg  "The Dojocat"



## Subscript / Superscript

- 19^th^
- H~2~O



## Footnotes👣    {#footnotes👣}

Footnote 1 link[^first].

Footnote 2 link[^second].

Inline footnote^[Text of inline footnote] definition.

Duplicated footnote reference[^second].

[^first]: Footnote **can have markup**

    and multiple paragraphs.

[^second]: Footnote text.


## Definition lists

Term 1

:   Definition 1
with lazy continuation.

Term 2 with *inline markup*

:   Definition 2

        { some code, part of Definition 2 }

    Third paragraph of definition 2.

Standalone Mmark Source

To view the source in a standalone page, see the following, which renders fine in Firefox and qutebrowser. It renders poorly in Edge and IE, despite messing around with all combinations of CRLF, LF, UTF-8, and "UTF-8 with BOM" -- probably I have to do something with HTTP headers‽

  www.ii.com/mmark-flavored-markdown-experiments/tgih-markdown-experiments.mmarkdown

 


  1. Footnote can have markup

    and multiple paragraphs.

    ↩︎
  2. Footnote text. ↩︎
  3. Text of inline footnote ↩︎
  4. Footnote text. ↩︎