-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
175 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Node } from '@tiptap/core'; | ||
export interface BlockquoteOptions { | ||
/** | ||
* HTML attributes to add to the blockquote element | ||
* @default {} | ||
* @example { class: 'foo' } | ||
*/ | ||
HTMLAttributes: Record<string, any>; | ||
} | ||
declare module '@tiptap/core' { | ||
interface Commands<ReturnType> { | ||
plainBlockQuote: { | ||
setPlainBlockquote: () => ReturnType; | ||
}; | ||
} | ||
} | ||
/** | ||
* Matches a blockquote to a `>` as input. | ||
*/ | ||
export declare const inputRegex: RegExp; | ||
/** | ||
* This extension allows you to create plain blockquotes, | ||
* contains only plainParagraph. | ||
* | ||
* Forked from: | ||
* @see https://tiptap.dev/api/nodes/blockquote | ||
*/ | ||
export declare const PlainBlockquote: Node<BlockquoteOptions, any>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Node } from '@tiptap/core'; | ||
export interface PlainParagraphOptions { | ||
/** | ||
* The HTML attributes for a plain paragraph node. | ||
* @default {} | ||
* @example { class: 'foo' } | ||
*/ | ||
HTMLAttributes: Record<string, any>; | ||
} | ||
declare module '@tiptap/core' { | ||
interface Commands<ReturnType> { | ||
plainParagraph: { | ||
setPlainParagraph: () => ReturnType; | ||
}; | ||
} | ||
} | ||
/** | ||
* This extension allows you to create | ||
* plain paragraphs (only support plain text and hard break) | ||
* for plainBlockquote extension. | ||
* | ||
* Forked from: | ||
* @see https://www.tiptap.dev/api/nodes/paragraph | ||
*/ | ||
export declare const PlainParagraph: Node<PlainParagraphOptions, any>; |