emacs-ipython-notebook/tests/GFM.md
John Miller b431f57ce1 Squashed 'lib/markdown-mode/' content from commit 3f11a4a
git-subtree-dir: lib/markdown-mode
git-subtree-split: 3f11a4a7609ba2a507ee10f491bdadab28e9b985
2016-09-09 09:47:48 -05:00

2.6 KiB

Strikethrough

This text should be parsed as strikethroughed.

There may be bold or italic text inside strikethroughed text.

There may be a keyboard shortcut like Enter inside strikethroughed text.

There may be strikethroughed text inside bold text. There may be strikethroughed text inside italic text.

~~ If there is a space in the beginning or end, it won't work as per the GFM docs ~~

Strikethrough can be applied to multiple lines. Just keep in mind not to put any space in the beginning or end.

Underscore In Words

The word complicated must be neither bold nor italic below:

perform_complicated_task perform__complicated__task

But the first part below is italic and bold respectively:

_perform_complicated_task __perform__complicated__task

Keyboard Shortcuts

Keyboard shortcuts below should be highlighted:


A keyboard shortcut Enter can be in paragraph.

  • A keyboard shortcut Enter can be in list.

A keyboard shortcut Enter can be in italic. A keyboard shortcut Enter can be in bold.

A keyboard shortcut Enter can be in deleted text.

A keyboard shortcut Enter can be in HTML.

A keyboard shortcut Enter can be in block level tags.

Fenced Code Blocks

In / Near List Items

Below fenced code blocks should be highlighted.


  • List item

    for (var i = 0; i < 10; i++) {
        console.log(i);
    }
    
  • List item

for (var i = 0; i < 10; i++) {
    console.log(i);
}

Below are not valid fenced code blocks according to the GFM docs. It says there must be a blank line before the code block. However, GitHub highlights them. So, they should be highlighted.


  • List item

    for (var i = 0; i < 10; i++) {
        console.log(i);
    }
    
  • List item

for (var i = 0; i < 10; i++) {
    console.log(i);
}

In / Near Paragraphs

Below is not a fenced code block, just a normal code block.


Paragraph

```js
for (var i = 0; i < 10; i++) {
    console.log(i);
}
```

Below 2 blocks are fenced code blocks. They should be highlighted.


Paragraph

for (var i = 0; i < 10; i++) {
    console.log(i);
}

Paragraph

for (var i = 0; i < 10; i++) {
    console.log(i);
}

Below is not any type of code block. It should not be highlighted.


Paragraph js for (var i = 0; i < 10; i++) { console.log(i); }