New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

carta-plugin-subscript

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

carta-plugin-subscript

This plugin adds ability to render subscripts and superscripts

latest
Source
npmnpm
Version
2.0.2
Version published
Weekly downloads
31
-32.61%
Maintainers
1
Weekly downloads
 
Created
Source

carta-plugin-subscript

carta-plugin-subscript

This plugin adds ability to render subscripts and superscripts to Carta.

New in v2

  • Support Carta v4
  • This plugin is now just a wrapper of remark-supersub

Installation

npm i carta-plugin-subscript

Setup

Extension

<script>
	import { Carta, MarkdownEditor } from 'carta-md';
	import { subscript } from 'carta-plugin-subscript';

	const carta = new Carta({
		extensions: [subscript()],
		gfmOptions: {
			// remark-gfm that Carta uses convert single tilde to strikethrough, disable that to use single tilde for subscript.
			// see https://stackoverflow.com/a/78076200/7884074
			singleTilde: false,
		},
	});
</script>

<MarkdownEditor {carta} />

Usage

This snippet:

H~2~O, CO~2~ and CH~4~ are greenhouse gases.
In the 19^th^ century, the concentration of CO~2~ was 280 ppm.

will generate this output:

output

Keywords

carta

FAQs

Package last updated on 09 Apr 2025

Did you know?

Socket

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.

Install

Related posts