Skip to content

Commit

Permalink
docs: 鉁忥笍 add doc for block plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Saul-Mirone committed Jul 15, 2022
1 parent 38a6bcb commit d00c327
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-block/README.md
@@ -1,6 +1,6 @@
# @milkdown/plugin-block

The history plugin of [milkdown](https://milkdown.dev/).
The block plugin of [milkdown](https://milkdown.dev/).

# Official Documentation

Expand Down
12 changes: 12 additions & 0 deletions website/pages/official-plugins/plugin-block/index.md
@@ -0,0 +1,12 @@
# @milkdown/plugin-block

Block plugin for [milkdown](https://milkdown.dev/) to simulate the behavior of block editor.

```typescript
import { Editor } from '@milkdown/core';
import { commonmark } from '@milkdown/preset-commonmark';

import { block } from '@milkdown/plugin-block';

Editor.make().use(commonmark).use(block).create();
```
1 change: 1 addition & 0 deletions website/route/page-config.ts
Expand Up @@ -47,6 +47,7 @@ export const config: ConfigItem[] = [
'plugin-tooltip',
'plugin-slash',
'plugin-menu',
'plugin-block',
'plugin-indent',
'plugin-trailing',
'plugin-emoji',
Expand Down
7 changes: 7 additions & 0 deletions website/route/page-dict.ts
Expand Up @@ -443,6 +443,13 @@ export const titleDict: Dict = new Map([
'zh-hans': 'plugin-trailing',
},
],
[
'plugin-block',
{
en: 'plugin-block',
'zh-hans': 'plugin-block',
},
],
[
'theme-nord',
{
Expand Down

0 comments on commit d00c327

Please sign in to comment.