
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
sanity-plugin-latex-input
Advanced tools
> **NOTE** > > This is the **Sanity Studio v2 version** of sanity-plugin-latex-input. > > For the v3 version, please refer to the [v3-branch](https://github.com/sanity-io/sanity-plugin-latex-input).
NOTE
This is the Sanity Studio v2 version of sanity-plugin-latex-input.
For the v3 version, please refer to the v3-branch.
yarn add sanity-plugin-latex-input@studio-v2
Next, add "latex-input"
to sanity.json
plugins array:
"plugins": [
"latex-input"
]
You may now use the type name latex
in your schema, such as in portable text.
import React from 'react'
const mathInlineIcon = () => (
<span>
<span style={{ fontWeight: 'bold' }}>∑</span>b
</span>
)
const mathIcon = () => <span style={{ fontWeight: 'bold' }}>∑</span>
export default {
name: 'portableTextWithLatex',
type: 'array',
title: 'Body',
of: [
{
type: 'block',
title: 'Block',
of: [
{ type: 'latex', icon: mathInlineIcon, title: 'Inline math' },
],
},
{ type: 'latex', icon: mathIcon, title: 'Math block' },
],
}
The Portable Text editor will render a preview of the contents with KaTeX.
FAQs
Latex input for Portable Text Editor in Sanity Studio V3.
The npm package sanity-plugin-latex-input receives a total of 650 weekly downloads. As such, sanity-plugin-latex-input popularity was classified as not popular.
We found that sanity-plugin-latex-input demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.