🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@milkdown/plugin-table

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@milkdown/plugin-table

latest
npmnpm
Version
5.3.1
Version published
Weekly downloads
43
10.26%
Maintainers
1
Weekly downloads
 
Created
Source

@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.

Keywords

milkdown

FAQs

Package last updated on 30 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts