Markdown трюки

В этой статье я собираю различные полезные трюки и лайфхаки при работе с markdown-файлами

При указании синтаксиса листинга кода, код отразится в формате языка синтаксиса

Syntax highlighting

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

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

Typographic replacements

Enable typographer option to see result.

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

© © ® ® ™ ™ § § ±

Blockquotes

Blockquotes can also be nested…

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

Blockquotes can also be nested…

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

…or with spaces between arrows.

Оформление терминов и определений (Term & Defenition)

Gutentor Simple Text

### [Definition lists](https://github.com/markdown-it/markdown-it-deflist)

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.

_Compact style:_

Term 1
  ~ Definition 1

Term 2
  ~ Definition 2a
  ~ Definition 2b

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.

Compact style:
Term 1
Definition 1
Term 2
Definition 2a
Definition 2b

Продолжение следует…

Источники:

https://markdown-it.github.io/

Поделиться

Опубликовано

в

,

от

Комментарии

Добавить комментарий