Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@milkdown/preset-gfm

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@milkdown/preset-gfm - npm Package Compare versions

Comparing version 6.5.4 to 7.0.0-next.0

./lib/index.es.js

38

lib/index.d.ts

@@ -1,35 +0,5 @@

import { AtomList } from '@milkdown/utils';
export * from './footnote';
export * from './strike-through';
export { SupportedKeys } from './supported-keys';
export { BreakTable, createTable, InsertTable, NextCell, PrevCell, table, } from './table';
export * from './task-list-item';
export { blockquote, bulletList, codeFence, codeInline, commonmark, commonmarkNodes, commonmarkPlugins, doc, em, HardbreakFilterPluginKey as hardbreak, heading, hr, image, InsertHardbreak, InsertHr, InsertImage, LiftListItem, link, listItem, ModifyImage, ModifyLink, orderedList, paragraph, SinkListItem, SplitListItem, strong, text, ToggleBold, ToggleInlineCode, ToggleItalic, ToggleLink, TurnIntoCodeFence, TurnIntoHeading, TurnIntoText, WrapInBlockquote, WrapInBulletList, WrapInOrderedList, } from '@milkdown/preset-commonmark';
export declare const gfm: AtomList<import("@milkdown/utils").AtomPlugin>;
export declare const commands: {
readonly ToggleStrikeThrough: import("@milkdown/core").CmdKey<undefined>;
readonly TurnIntoTaskList: import("@milkdown/core").CmdKey<undefined>;
readonly SinkTaskListItem: import("@milkdown/core").CmdKey<undefined>;
readonly LiftTaskListItem: import("@milkdown/core").CmdKey<undefined>;
readonly SplitTaskListItem: import("@milkdown/core").CmdKey<undefined>;
readonly ToggleInlineCode: import("@milkdown/core").CmdKey<undefined>;
readonly ToggleItalic: import("@milkdown/core").CmdKey<undefined>;
readonly ToggleLink: import("@milkdown/core").CmdKey<string>;
readonly ToggleBold: import("@milkdown/core").CmdKey<undefined>;
readonly ModifyLink: import("@milkdown/core").CmdKey<string>;
readonly ModifyImage: import("@milkdown/core").CmdKey<string>;
readonly WrapInBlockquote: import("@milkdown/core").CmdKey<undefined>;
readonly WrapInBulletList: import("@milkdown/core").CmdKey<undefined>;
readonly WrapInOrderedList: import("@milkdown/core").CmdKey<undefined>;
readonly TurnIntoCodeFence: import("@milkdown/core").CmdKey<undefined>;
readonly TurnIntoHeading: import("@milkdown/core").CmdKey<number>;
readonly TurnIntoText: import("@milkdown/core").CmdKey<undefined>;
readonly InsertHardbreak: import("@milkdown/core").CmdKey<undefined>;
readonly InsertHr: import("@milkdown/core").CmdKey<string>;
readonly InsertImage: import("@milkdown/core").CmdKey<string>;
readonly SplitListItem: import("@milkdown/core").CmdKey<undefined>;
readonly SinkListItem: import("@milkdown/core").CmdKey<undefined>;
readonly LiftListItem: import("@milkdown/core").CmdKey<undefined>;
};
export type Commands = typeof commands;
export * from './node';
export * from './mark';
export * from './composed';
export declare const gfm: import("@milkdown/ctx").MilkdownPlugin[];
//# sourceMappingURL=index.d.ts.map
{
"name": "@milkdown/preset-gfm",
"type": "module",
"version": "6.5.4",
"version": "7.0.0-next.0",
"license": "MIT",

@@ -25,5 +25,7 @@ "repository": {

"peerDependencies": {
"@milkdown/core": "^6.0.1",
"@milkdown/preset-commonmark": "^6.0.1",
"@milkdown/prose": "^6.0.1"
"@milkdown/core": "^7.0.0-next.0",
"@milkdown/ctx": "^7.0.0-next.0",
"@milkdown/preset-commonmark": "^7.0.0-next.0",
"@milkdown/prose": "^7.0.0-next.0",
"@milkdown/transformer": "^7.0.0-next.0"
},

@@ -33,10 +35,11 @@ "dependencies": {

"tslib": "^2.4.0",
"@milkdown/exception": "6.5.4",
"@milkdown/utils": "6.5.4"
"@milkdown/exception": "7.0.0-next.0",
"@milkdown/utils": "7.0.0-next.0"
},
"devDependencies": {
"@milkdown/core": "6.5.4",
"@milkdown/design-system": "6.5.4",
"@milkdown/preset-commonmark": "6.5.4",
"@milkdown/prose": "6.5.4"
"@milkdown/core": "7.0.0-next.0",
"@milkdown/ctx": "7.0.0-next.0",
"@milkdown/preset-commonmark": "7.0.0-next.0",
"@milkdown/prose": "7.0.0-next.0",
"@milkdown/transformer": "7.0.0-next.0"
},

@@ -43,0 +46,0 @@ "nx": {

/* Copyright 2021, Milkdown by Mirone. */
import { commonmark, commands as commonmarkCommands } from '@milkdown/preset-commonmark'
import { $remark, AtomList } from '@milkdown/utils'
import remarkGFM from 'remark-gfm'
import { footnoteReference } from './footnote'
import { footnoteDefinition } from './footnote/definition'
import { ToggleStrikeThrough, strikeThrough } from './strike-through'
import { table } from './table'
import {
LiftTaskListItem,
SinkTaskListItem,
SplitTaskListItem,
TurnIntoTaskList,
taskListItem,
} from './task-list-item'
import { commands, inputrules, keymap, plugins, schema } from './composed'
export * from './footnote'
export * from './strike-through'
export { SupportedKeys } from './supported-keys'
export {
BreakTable,
// command
createTable,
InsertTable,
NextCell,
PrevCell,
// gather
table,
} from './table'
export * from './task-list-item'
export {
blockquote,
bulletList,
codeFence,
codeInline,
commonmark,
// gather
commonmarkNodes,
commonmarkPlugins,
// node
doc,
em,
HardbreakFilterPluginKey as hardbreak,
heading,
hr,
image,
// command
InsertHardbreak,
InsertHr,
InsertImage,
LiftListItem,
link,
listItem,
ModifyImage,
ModifyLink,
orderedList,
paragraph,
SinkListItem,
SplitListItem,
strong,
text,
ToggleBold,
ToggleInlineCode,
ToggleItalic,
ToggleLink,
TurnIntoCodeFence,
TurnIntoHeading,
TurnIntoText,
WrapInBlockquote,
WrapInBulletList,
WrapInOrderedList,
} from '@milkdown/preset-commonmark'
export * from './node'
export * from './mark'
export * from './composed'
export const gfm = AtomList.create([
...commonmark,
$remark(() => remarkGFM),
table(),
strikeThrough(),
taskListItem(),
footnoteReference(),
footnoteDefinition(),
])
export const commands = {
...commonmarkCommands,
ToggleStrikeThrough,
TurnIntoTaskList,
SinkTaskListItem,
LiftTaskListItem,
SplitTaskListItem,
} as const
export type Commands = typeof commands
export const gfm = [schema, inputrules, keymap, plugins, commands].flat()

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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