Typography extension for Tiptap that automatically converts common text input patterns into proper typographic characters.
73
A utility that converts rich text content between different formats (JSON, HTML, and plain text) using a Tiptap editor instance.
Converts content between different serialization formats while preserving semantic structure.
Provides utilities to check and transform content structure.
@generates
/**
* ContentConverter provides methods to convert content between different formats
* and manipulate document content using a Tiptap editor.
*/
export class ContentConverter {
/**
* Converts JSON content to HTML format
* @param jsonContent - The JSON content to convert
* @returns HTML string representation
*/
convertToHTML(jsonContent: any): string;
/**
* Converts HTML content to JSON format
* @param htmlContent - The HTML string to convert
* @returns JSON representation of the content
*/
convertToJSON(htmlContent: string): any;
/**
* Extracts plain text from JSON content
* @param jsonContent - The JSON content to extract text from
* @returns Plain text string
*/
extractText(jsonContent: any): string;
/**
* Checks if the current content is empty
* @returns true if content is empty, false otherwise
*/
isEmpty(): boolean;
/**
* Clears all content from the document
*/
clearContent(): void;
}Provides the core Tiptap editor functionality for content manipulation and serialization.
@satisfied-by
Provides essential Tiptap extensions for basic rich text editing features.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-tiptap--extension-typographydocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10