Skip to content

Instantly share code, notes, and snippets.

@IngwiePhoenix
Created January 2, 2016 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IngwiePhoenix/0aa7be6e75f5e3d0e75f to your computer and use it in GitHub Desktop.
Save IngwiePhoenix/0aa7be6e75f5e3d0e75f to your computer and use it in GitHub Desktop.
Example markdown

This is heading 1

This is heading 2

This is heading 3

In the following, I will demonstrate some Markdown stuff.

I will assume a defacto default parser and transformer, so the following rules apply:

  • Full line-breaks need a <br> tag.
  • Opening a new paragraph requires two newlines (enter-enter)

Code fencing

A code fence has two forms - either a starting and an ending backtick, or three starting backticks, an optional language, a new line, the code, a new line and the closing backticks.

Tiny code fence

This paragraph should be wrapped in a <code>-block.

Big code fence

Without optional language:

<?php
require_once "./vendor/autoload.php";
use Bardians\Bard;
Bard::tellStory();

Using php as the specified language:

<?php
require_once "./vendor/autoload.php";
use Bardians\Bard;
Bard::tellStory();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment