Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@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
The npm package @tiptap/extension-typography receives a total of 82,046 weekly downloads. As such, @tiptap/extension-typography popularity was classified as popular.
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 6 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.