Skip to content

Commit

Permalink
docs: Добавлена секция о GFM Alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
GulomovCreative committed Apr 18, 2024
1 parent 3ef1a5a commit f756e7e
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 5 deletions.
16 changes: 13 additions & 3 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,24 @@
"line-length": false,
"link-fragments": false,
"no-inline-html": {
"allowed_elements": ["Badge", "DocsComponentsList", "ul", "ol", "li", "small", "sub", "sup", "br"]
"allowed_elements": [
"Badge",
"DocsComponentsList",
"ul",
"ol",
"li",
"small",
"sub",
"sup",
"br"
]
},
"fenced-code-language": false,
"no-duplicate-heading": {
"allow_different_nesting": true,
"siblings_only": true
},
"single-title": {
"front_matter_title": ""
}
},
"no-blanks-blockquote": false
}
44 changes: 42 additions & 2 deletions docs/guide/vitepress.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ VitePress использует [markdown-it](https://github.com/markdown-it/mark

```markdown
| Tables | Are | Cool |
| ------------- | :-----------: | ----: |
|---------------|:-------------:|------:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
Expand All @@ -43,7 +43,7 @@ VitePress использует [markdown-it](https://github.com/markdown-it/mark
**Вывод:**

| Tables | Are | Cool |
| ------------- | :-----------: | ----: |
|---------------|:-------------:|------:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
Expand Down Expand Up @@ -162,6 +162,46 @@ console.log('Привет, VitePress!');

:::

## Уведомления в формате GFM (GitHub-flavored Markdown)

VitePress также поддерживает уведомления в стиле GitHub. Они будут отображаться также, как уведомления выше.

**Пример:**

````markdown
> [!NOTE]
> This is an info box.

> [!TIP]
> This is a tip.

> [!IMPORTANT]
> This is an important message.

> [!WARNING]
> This is a warning.

> [!CAUTION]
> This is a dangerous warning.
````

**Вывод:**

> [!NOTE]
> This is an info box.
> [!TIP]
> This is a tip.
> [!IMPORTANT]
> This is an important message.
> [!WARNING]
> This is a warning.
> [!CAUTION]
> This is a dangerous warning.
## Подсветка синтаксиса в блоках кода

VitePress использует [Shiki](https://shiki.matsu.io/) для подсветки синтаксиса вашего кода в блоках markdown, используя цветной текст.
Expand Down

0 comments on commit f756e7e

Please sign in to comment.