Mehdown 2.0

shawn posted about a kickstarter said
25

We’ve launched version 2.0 of the Markdown parser we use on the forums at meh.com and other mediocre.com websites.

If you’ve ever had trouble with odd things like URLs with underscore characters not linking correctly, newline characters in block quotes, or have ever wanted to add start times to your YouTube embeds… this release is for you.

Markdown Extensions

At its core, Mehdown is a Markdown parser. Most of the features of Markdown should work as expected.

In addition to the traditional Markdown feature set, Mehdown adds the following features:

Automatically convert URL-like text to links

No need remember the Markdown syntax for adding links. If you have a URL just paste it in and Mehdown will automatically convert it to a link for you.

https://meh.com or just meh.com

https://meh.com or just meh.com

Automatically render image URLs as images

If your URL ends with a recognizable image format Mehdown with automatically convert it to an image (instead of a text link). Useful for GIFs.

https://media.giphy.com/media/xT1XH0lC7yoLLB1BSM/giphy.gif

Automatic detection of @usernames

Text that looks like a username gets converted to a link for the user’s public profile page.

@shawn

@shawn

Tables

New in Mehdown 2.0 is support for tables in GitHub Flavored Markdown syntax.

| First Header  | Second Header |
| ------------- | ------------- |
| Content Cell  | Content Cell  |
| Content Cell  | Content Cell  |
First Header Second Header
Content Cell Content Cell
Content Cell Content Cell

Nested Blockquotes

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

Blockquotes can be nested…

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

or with spaces between arrows.

Nested Lists

- Create a list by starting a line with `+`, `-`, or `*`
  - Sub-lists are made by indenting 2 spaces:
    - Lists all the way down.
  • Create a list by starting a line with +, -, or *
    • Sub-lists are made by indenting 2 spaces:
      • Lists all the way down.

Strikethrough

Mehdown support strikethrough using the ~~ syntax.

~~strikethrough~~

strikethrough

Inline Code

If you need a monospaced font without other Mehdown parser features getting in your way Mehdown supports inline and fenced code blocks.

Inline `code` here.

Inline code here.

Fenced Code

If your code needs more than one line use a fenced code block.

```
Fenced
code
here.
```
Fenced
code
here.

Typographic replacements

Mehdown supports fancy double quotes, single quotes, and other typographic replacements.

"Double quotes", 'single quote',  (p) +- ... --

“Double quotes”, ‘single quote’, § ± … –

Emoji shortnames

Mehdown supports automatically converting common Emoji :shortnames: to images.

:star: :thumbsup: :heart: :laughing: :astonished:

Unicode Emoji characters

Mehdown supports converting native unicode Emoji characters to images.

Unicode Emoji: 😄.

Unicode Emoji: .

ASCII smileys

Mehdown supports converting ASCII smileys to Emoji images.

ASCII smileys: :).

ASCII smileys: .

Embeds

Mehdown automatically converts URLs from many popular sites into HTML embeds.

Imgur GIFV

Imgur GIFV URLs are converted to high quality looping GIF videos.

http://i.imgur.com/zvATqgs.gifv

Kickstarter

Kickstarter URLs are converted to campaign previews.

https://www.kickstarter.com/projects/snapster/the-classic-daily-deal-site

Reddit

Reddit permalink URLs are converted to embeddable comment threads.

https://www.reddit.com/r/AskReddit/comments/4iubue/what_websites_have_you_slowly_stopped_visiting/d319219

SoundCloud

SoundCloud URLs are converted to audio players.

https://soundcloud.com/mediocrelabs/meh-we-are-meh

Twitter

Twitter status URLs are converted to embeddable tweets.

https://twitter.com/WeAreMeh/status/734232328331923456

Vimeo

Vimeo URLs are converted to video players.

https://vimeo.com/117770305

Vine

Vine URLs are converted to video players.

https://vine.co/v/hWZ9mbJZaKE

YouTube

YouTube URLs are converted to video players.

https://www.youtube.com/watch?v=yVLU3hkp2a4&start=597

Open Source

Mehdown is open source. If you have an idea for a new embed or found a bug you want fixed we’ll take pull requests over on GitHub.