Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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 567 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.