Skip to content

Latest commit

 

History

History
158 lines (107 loc) · 3.07 KB

GFM.md

File metadata and controls

158 lines (107 loc) · 3.07 KB

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 recommended by the GFM docs due to the lack of preceding blank line; but still supported and highlighted by the GFM. 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); }

Links

I'm an inline link I'm an inline image I'm a link I'm an image I'm a link literal I'm a link literal too i'm a CASE INSENSITIVE link