This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@milkdown/plugin-table
TypeScript icon, indicating that this package has built-in type declarations

5.3.1 • Public • Published

@milkdown/plugin-table

Table plugin for milkdown. Add support for table commands.

Example Usage

import { Editor } from '@milkdown/core';
import { commonmark } from '@milkdown/preset-commonmark';
import { nord } from '@milkdown/theme-nord';

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

Editor.make().use(nord).use(commonmark).use(table).create();

Custom Keymap

import { tableNodes, tablePlugin, SupportedKeys, table } from '@milkdown/plugin-table';

Editor.make()
    .use(commonmark)
    .use(
        tableNodes.configure(table, {
            keymap: {
                [SupportedKeys.NextCell]: 'Enter',
                [SupportedKeys.PrevCell]: 'Alt-Enter',
            },
        }),
    )
    .use(tablePlugin)
    .create();

Keymap supported:

  • NextCell: go to next cell of table.
  • PrevCell: go to prev cell of table.
  • ExitTable: exist current table.

License

Milkdown is open sourced software licensed under MIT license.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i @milkdown/plugin-table

Weekly Downloads

3

Version

5.3.1

License

MIT

Unpacked Size

119 kB

Total Files

44

Last publish

Collaborators

  • mirone