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

tiptap-markdown

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiptap-markdown - npm Package Compare versions

Comparing version 0.3.4 to 0.4.0

30

dist/tiptap-markdown.cjs.js

@@ -10,3 +10,2 @@ 'use strict';

var taskListPlugin = require('markdown-it-task-lists');
var markPlugin = require('markdown-it-mark');

@@ -17,3 +16,2 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var taskListPlugin__default = /*#__PURE__*/_interopDefaultLegacy(taskListPlugin);
var markPlugin__default = /*#__PURE__*/_interopDefaultLegacy(markPlugin);

@@ -1068,18 +1066,2 @@ function ownKeys(object, enumerableOnly) {

var Highlight = core.Mark.create({
name: 'highlight'
});
var Highlight$1 = createMarkdownExtension(Highlight, {
serialize: {
open: '==',
close: '==',
expelEnclosingWhitespace: true
},
parse: {
setup: function setup(markdownit) {
markdownit.use(markPlugin__default['default']);
}
}
});
var Italic = core.Mark.create({

@@ -1116,10 +1098,12 @@ name: 'italic'

var defaultExtensions = [Blockquote$1, BulletList$1, CodeBlock$1, HardBreak$1, Heading$1, HorizontalRule$1, Image$1, ListItem$1, OrderedList$1, Paragraph$1, Table$1, TaskItem$1, TaskList$1, Text$1, Bold$1, Code$1, Highlight$1, Italic$1, Link$1, Strike$1];
var defaultExtensions = [Blockquote$1, BulletList$1, CodeBlock$1, HardBreak$1, Heading$1, HorizontalRule$1, Image$1, ListItem$1, OrderedList$1, Paragraph$1, Table$1, TaskItem$1, TaskList$1, Text$1, Bold$1, Code$1, Italic$1, Link$1, Strike$1];
var MarkdownTightLists = core.Extension.create({
name: 'markdownTightLists',
defaultOptions: {
tight: true,
tightClass: 'tight',
listTypes: ['bulletList', 'orderedList']
addOptions: function addOptions() {
return {
tight: true,
tightClass: 'tight',
listTypes: ['bulletList', 'orderedList']
};
},

@@ -1126,0 +1110,0 @@ addGlobalAttributes: function addGlobalAttributes() {

@@ -6,3 +6,2 @@ import { MarkdownSerializerState as MarkdownSerializerState$1, defaultMarkdownSerializer } from 'prosemirror-markdown';

import taskListPlugin from 'markdown-it-task-lists';
import markPlugin from 'markdown-it-mark';

@@ -1057,18 +1056,2 @@ function ownKeys(object, enumerableOnly) {

var Highlight = Mark.create({
name: 'highlight'
});
var Highlight$1 = createMarkdownExtension(Highlight, {
serialize: {
open: '==',
close: '==',
expelEnclosingWhitespace: true
},
parse: {
setup: function setup(markdownit) {
markdownit.use(markPlugin);
}
}
});
var Italic = Mark.create({

@@ -1105,10 +1088,12 @@ name: 'italic'

var defaultExtensions = [Blockquote$1, BulletList$1, CodeBlock$1, HardBreak$1, Heading$1, HorizontalRule$1, Image$1, ListItem$1, OrderedList$1, Paragraph$1, Table$1, TaskItem$1, TaskList$1, Text$1, Bold$1, Code$1, Highlight$1, Italic$1, Link$1, Strike$1];
var defaultExtensions = [Blockquote$1, BulletList$1, CodeBlock$1, HardBreak$1, Heading$1, HorizontalRule$1, Image$1, ListItem$1, OrderedList$1, Paragraph$1, Table$1, TaskItem$1, TaskList$1, Text$1, Bold$1, Code$1, Italic$1, Link$1, Strike$1];
var MarkdownTightLists = Extension.create({
name: 'markdownTightLists',
defaultOptions: {
tight: true,
tightClass: 'tight',
listTypes: ['bulletList', 'orderedList']
addOptions: function addOptions() {
return {
tight: true,
tightClass: 'tight',
listTypes: ['bulletList', 'orderedList']
};
},

@@ -1115,0 +1100,0 @@ addGlobalAttributes: function addGlobalAttributes() {

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('prosemirror-markdown'), require('markdown-it'), require('@tiptap/core'), require('prosemirror-model'), require('markdown-it-task-lists'), require('markdown-it-mark')) :
typeof define === 'function' && define.amd ? define(['exports', 'prosemirror-markdown', 'markdown-it', '@tiptap/core', 'prosemirror-model', 'markdown-it-task-lists', 'markdown-it-mark'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['tiptap-markdown'] = {}, global.prosemirrorMarkdown, global.markdownit, global.core, global.prosemirrorModel, global.taskListPlugin, global.markPlugin));
}(this, (function (exports, prosemirrorMarkdown, markdownit, core, prosemirrorModel, taskListPlugin, markPlugin) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('prosemirror-markdown'), require('markdown-it'), require('@tiptap/core'), require('prosemirror-model'), require('markdown-it-task-lists')) :
typeof define === 'function' && define.amd ? define(['exports', 'prosemirror-markdown', 'markdown-it', '@tiptap/core', 'prosemirror-model', 'markdown-it-task-lists'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['tiptap-markdown'] = {}, global.prosemirrorMarkdown, global.markdownit, global.core, global.prosemirrorModel, global.taskListPlugin));
}(this, (function (exports, prosemirrorMarkdown, markdownit, core, prosemirrorModel, taskListPlugin) { 'use strict';

@@ -11,3 +11,2 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var taskListPlugin__default = /*#__PURE__*/_interopDefaultLegacy(taskListPlugin);
var markPlugin__default = /*#__PURE__*/_interopDefaultLegacy(markPlugin);

@@ -1062,18 +1061,2 @@ function ownKeys(object, enumerableOnly) {

var Highlight = core.Mark.create({
name: 'highlight'
});
var Highlight$1 = createMarkdownExtension(Highlight, {
serialize: {
open: '==',
close: '==',
expelEnclosingWhitespace: true
},
parse: {
setup: function setup(markdownit) {
markdownit.use(markPlugin__default['default']);
}
}
});
var Italic = core.Mark.create({

@@ -1110,10 +1093,12 @@ name: 'italic'

var defaultExtensions = [Blockquote$1, BulletList$1, CodeBlock$1, HardBreak$1, Heading$1, HorizontalRule$1, Image$1, ListItem$1, OrderedList$1, Paragraph$1, Table$1, TaskItem$1, TaskList$1, Text$1, Bold$1, Code$1, Highlight$1, Italic$1, Link$1, Strike$1];
var defaultExtensions = [Blockquote$1, BulletList$1, CodeBlock$1, HardBreak$1, Heading$1, HorizontalRule$1, Image$1, ListItem$1, OrderedList$1, Paragraph$1, Table$1, TaskItem$1, TaskList$1, Text$1, Bold$1, Code$1, Italic$1, Link$1, Strike$1];
var MarkdownTightLists = core.Extension.create({
name: 'markdownTightLists',
defaultOptions: {
tight: true,
tightClass: 'tight',
listTypes: ['bulletList', 'orderedList']
addOptions: function addOptions() {
return {
tight: true,
tightClass: 'tight',
listTypes: ['bulletList', 'orderedList']
};
},

@@ -1120,0 +1105,0 @@ addGlobalAttributes: function addGlobalAttributes() {

{
"name": "tiptap-markdown",
"version": "0.3.4",
"version": "0.4.0",
"description": "Edit markdown content in tiptap editor.",

@@ -9,3 +9,4 @@ "scripts": {

"watch": "rollup -c -w",
"preversion": "npm run build"
"preversion": "npm run build",
"update:tiptap": "update-by-scope @tiptap"
},

@@ -30,3 +31,2 @@ "main": "dist/tiptap-markdown.cjs.js",

"markdown-it": "^12.0.6",
"markdown-it-mark": "^3.0.1",
"markdown-it-task-lists": "^2.1.1",

@@ -42,28 +42,27 @@ "prosemirror-markdown": "^1.6.0"

"@rollup/plugin-node-resolve": "^13.0.0",
"@tiptap/core": "^2.0.0-beta.80",
"@tiptap/extension-highlight": "^2.0.0-beta.14",
"@tiptap/extension-image": "^2.0.0-beta.13",
"@tiptap/extension-link": "^2.0.0-beta.17",
"@tiptap/extension-table": "^2.0.0-beta.22",
"@tiptap/extension-table-cell": "^2.0.0-beta.13",
"@tiptap/extension-table-header": "^2.0.0-beta.15",
"@tiptap/extension-table-row": "^2.0.0-beta.13",
"@tiptap/extension-task-item": "^2.0.0-beta.16",
"@tiptap/extension-task-list": "^2.0.0-beta.16",
"@tiptap/extension-underline": "^2.0.0-beta.14",
"@tiptap/starter-kit": "^2.0.0-beta.76",
"@tiptap/vue-3": "^2.0.0-beta.34",
"@tiptap/core": "^2.0.0-beta.129",
"@tiptap/extension-highlight": "^2.0.0-beta.26",
"@tiptap/extension-image": "^2.0.0-beta.20",
"@tiptap/extension-link": "^2.0.0-beta.24",
"@tiptap/extension-table": "^2.0.0-beta.36",
"@tiptap/extension-table-cell": "^2.0.0-beta.16",
"@tiptap/extension-table-header": "^2.0.0-beta.18",
"@tiptap/extension-table-row": "^2.0.0-beta.15",
"@tiptap/extension-task-item": "^2.0.0-beta.23",
"@tiptap/extension-task-list": "^2.0.0-beta.19",
"@tiptap/extension-underline": "^2.0.0-beta.17",
"@tiptap/starter-kit": "^2.0.0-beta.131",
"@tiptap/vue-3": "^2.0.0-beta.73",
"babel-jest": "^27.0.2",
"install": "^0.13.0",
"jest": "^27.0.4",
"jest-serializer-html": "^7.1.0",
"npm": "^7.16.0",
"prosemirror-model": "^1.14.1",
"rollup": "^2.51.1",
"rollup-plugin-auto-external": "^2.0.0"
"rollup-plugin-auto-external": "^2.0.0",
"update-by-scope": "^1.1.3"
},
"peerDependencies": {
"@tiptap/core": "^2.0.0-beta.125",
"@tiptap/core": "^2.0.0-beta.129",
"prosemirror-model": "^1.14.1"
}
}

@@ -18,3 +18,2 @@ import Blockquote from "./nodes/blockquote";

import Code from "./marks/code";
import Highlight from "./marks/highlight";
import Italic from "./marks/italic";

@@ -43,3 +42,2 @@ import Link from "./marks/link";

Code,
Highlight,
Italic,

@@ -46,0 +44,0 @@ Link,

@@ -5,3 +5,3 @@ import { Extension } from "@tiptap/core";

name: 'markdownTightLists',
defaultOptions: {
addOptions: () => ({
tight: true,

@@ -13,3 +13,3 @@ tightClass: 'tight',

],
},
}),
addGlobalAttributes() {

@@ -16,0 +16,0 @@ return [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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