New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tiptap/extension-italic

Package Overview
Dependencies
Maintainers
6
Versions
181
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-italic - npm Package Compare versions

Comparing version 3.0.0-next.3 to 3.0.0-next.4

LICENSE.md

2

dist/index.d.ts

@@ -8,3 +8,3 @@ import { Mark } from '@tiptap/core';

* @example { class: 'foo' }
*/
*/
HTMLAttributes: Record<string, any>;

@@ -11,0 +11,0 @@ }

// src/italic.ts
import {
Mark,
markInputRule,
markPasteRule,
mergeAttributes
} from "@tiptap/core";
import { Mark, markInputRule, markPasteRule, mergeAttributes } from "@tiptap/core";
var starInputRegex = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/;

@@ -86,6 +81,6 @@ var starPasteRegex = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g;

// src/index.ts
var src_default = Italic;
var index_default = Italic;
export {
Italic,
src_default as default,
index_default as default,
starInputRegex,

@@ -92,0 +87,0 @@ starPasteRegex,

{
"name": "@tiptap/extension-italic",
"description": "italic extension for tiptap",
"version": "3.0.0-next.3",
"version": "3.0.0-next.4",
"homepage": "https://tiptap.dev",

@@ -18,3 +18,6 @@ "keywords": [

".": {
"types": "./dist/index.d.ts",
"types": {
"import": "./dist/index.d.ts",
"require": "./dist/index.d.cts"
},
"import": "./dist/index.js",

@@ -32,3 +35,3 @@ "require": "./dist/index.cjs"

"devDependencies": {
"@tiptap/core": "^3.0.0-next.3"
"@tiptap/core": "^3.0.0-next.4"
},

@@ -44,4 +47,5 @@ "peerDependencies": {

"scripts": {
"build": "tsup"
"build": "tsup",
"lint": "prettier ./src/ --check && eslint --cache --quiet --no-error-on-unmatched-pattern ./src/"
}
}
}
# @tiptap/extension-italic
[![Version](https://img.shields.io/npm/v/@tiptap/extension-italic.svg?label=version)](https://www.npmjs.com/package/@tiptap/extension-italic)

@@ -8,8 +9,11 @@ [![Downloads](https://img.shields.io/npm/dm/@tiptap/extension-italic.svg)](https://npmcharts.com/compare/tiptap?minimal=true)

## Introduction
Tiptap is a headless wrapper around [ProseMirror](https://ProseMirror.net) – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as *New York Times*, *The Guardian* or *Atlassian*.
Tiptap is a headless wrapper around [ProseMirror](https://ProseMirror.net) – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as _New York Times_, _The Guardian_ or _Atlassian_.
## Official Documentation
Documentation can be found on the [Tiptap website](https://tiptap.dev).
## License
Tiptap is open sourced software licensed under the [MIT license](https://github.com/ueberdosis/tiptap/blob/main/LICENSE.md).

@@ -1,7 +0,2 @@

import {
Mark,
markInputRule,
markPasteRule,
mergeAttributes,
} from '@tiptap/core'
import { Mark, markInputRule, markPasteRule, mergeAttributes } from '@tiptap/core'

@@ -13,4 +8,4 @@ export interface ItalicOptions {

* @example { class: 'foo' }
*/
HTMLAttributes: Record<string, any>,
*/
HTMLAttributes: Record<string, any>
}

@@ -25,3 +20,3 @@

*/
setItalic: () => ReturnType,
setItalic: () => ReturnType
/**

@@ -31,3 +26,3 @@ * Toggle an italic mark

*/
toggleItalic: () => ReturnType,
toggleItalic: () => ReturnType
/**

@@ -37,3 +32,3 @@ * Unset an italic mark

*/
unsetItalic: () => ReturnType,
unsetItalic: () => ReturnType
}

@@ -101,11 +96,17 @@ }

return {
setItalic: () => ({ commands }) => {
return commands.setMark(this.name)
},
toggleItalic: () => ({ commands }) => {
return commands.toggleMark(this.name)
},
unsetItalic: () => ({ commands }) => {
return commands.unsetMark(this.name)
},
setItalic:
() =>
({ commands }) => {
return commands.setMark(this.name)
},
toggleItalic:
() =>
({ commands }) => {
return commands.toggleMark(this.name)
},
unsetItalic:
() =>
({ commands }) => {
return commands.unsetMark(this.name)
},
}

@@ -112,0 +113,0 @@ },

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

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