Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

  • 4.9.3
  • npm
  • Socket score

Version published
Weekly downloads
57
decreased by-19.72%
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 theme and style
import '@milkdown/theme-nord/lib/theme.css';
import '@milkdown/preset-commonmark/lib/style.css';

import { table } from '@milkdown/plugin-table';
// import style
import '@milkdown/plugin-table/lib/style.css';

new Editor().use(commonmark).use(table).create();

Custom Keymap

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

new Editor()
    .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.

Keywords

FAQs

Package last updated on 10 Aug 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc