Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
@tiptap/extension-typography
Advanced tools
@tiptap/extension-typography is an extension for the Tiptap editor that provides advanced typography features. It enhances the text editing experience by automatically transforming certain text patterns into their typographically correct forms.
Smart Quotes
Automatically converts straight quotes to smart quotes. For example, typing '"Hello"' will be transformed into '“Hello”'.
import Typography from '@tiptap/extension-typography';
import { Editor } from '@tiptap/core';
const editor = new Editor({
extensions: [
Typography,
],
});
// Typing '"Hello"' in the editor will automatically convert to '“Hello”'.
Ellipsis
Automatically converts three consecutive dots '...' into an ellipsis '…'.
import Typography from '@tiptap/extension-typography';
import { Editor } from '@tiptap/core';
const editor = new Editor({
extensions: [
Typography,
],
});
// Typing '...' in the editor will automatically convert to '…'.
En Dash and Em Dash
Automatically converts double hyphens '--' to en dashes '–' and triple hyphens '---' to em dashes '—'.
import Typography from '@tiptap/extension-typography';
import { Editor } from '@tiptap/core';
const editor = new Editor({
extensions: [
Typography,
],
});
// Typing '--' in the editor will automatically convert to '–' (en dash).
// Typing '---' in the editor will automatically convert to '—' (em dash).
Typogr is a JavaScript library that provides similar typography enhancements by transforming text into typographically correct forms. It focuses on smart quotes, ellipses, and dashes, much like @tiptap/extension-typography, but it is not specifically designed for integration with rich text editors.
Typography.js is a library that helps you design beautiful typography for your website. While it offers a broader range of typography-related features, including font scaling and rhythm, it does not provide the same automatic text transformation features as @tiptap/extension-typography.
Smartypants is a library that converts plain ASCII punctuation characters into 'smart' typographic punctuation HTML entities. It offers similar functionality to @tiptap/extension-typography but is more focused on static text transformation rather than integration with a rich text editor.
Tiptap is a headless wrapper around ProseMirror – 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.
Documentation can be found on the Tiptap website.
Tiptap is open sourced software licensed under the MIT license.
FAQs
typography extension for tiptap
We found that @tiptap/extension-typography demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.