Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

carta-md

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

carta-md - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

3

dist/internal/carta.d.ts

@@ -32,2 +32,3 @@ import { Marked, type MarkedExtension } from 'marked';

type CartaListeners = CartaListener<any>[];
type MaybeArray<T> = T | Array<T>;
export interface CartaExtensionComponent<T extends object> {

@@ -47,3 +48,3 @@ /**

*/
parent: 'editor' | 'input' | 'renderer';
parent: MaybeArray<'editor' | 'input' | 'renderer' | 'preview'>;
}

@@ -50,0 +51,0 @@ type CartaExtensionComponents = Array<CartaExtensionComponent<any>>;

@@ -14,3 +14,3 @@ {

},
"version": "2.1.1",
"version": "2.2.0",
"scripts": {

@@ -17,0 +17,0 @@ "dev": "vite dev",

<div align="center">
<h1>Carta</h1>
<img src="https://see.fontimg.com/api/renderfont4/lemD/eyJyIjoiZnMiLCJoIjoxMjMsInciOjEyNTAsImZzIjo5OCwiZmdjIjoiIzQ2RUJFNyIsImJnYyI6IiNGRkZGRkYiLCJ0IjoxfQ/Q2FydGE/bukhari-script.png" width="240" alt="logo">
</div>
<br>
<div align="center">
<a href="https://www.npmjs.com/package/carta-md"><img src="https://img.shields.io/npm/v/carta-md?color=%234f7ce3" alt="npm"></a>
<a href="https://bundlephobia.com/package/carta-md"><img src="https://img.shields.io/bundlephobia/min/carta-md?color=%235db8fc" alt="bundle"></a>
<a href="https://github.com/BearToCode/carta-md/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/carta-md?color=%232cd1de" alt="license"></a>
<a href="http://beartocode.me/carta-md/"><img src="https://img.shields.io/badge/demo-available-16b57c" alt="demo"></a>
</div>
![Demo](https://github.com/BearToCode/carta-md/blob/master/images/demo.png?raw=true)
<br>
A **lightweight**, **fast** and **extensible** Svelte Markdown editor and viewer. Check out the [demo](http://beartocode.me/carta-md/) to see it in action.
Carta is a **lightweight**, **fast** and **extensible** Svelte Markdown editor and viewer, based on [Marked](https://github.com/markedjs/marked). Check out the [demo](http://beartocode.me/carta-md/) to see it in action.
Differently from most editors, Carta includes neither ProseMirror nor CodeMirror, allowing for an extremely small bundle size and fast loading time.

@@ -133,3 +138,3 @@

| `listeners` | `CartaListener[]` | Textarea event listeners |
| `components` | `CartaExtensionComponentArray` | Additional components, that will be put after the editor. All components are given a `carta: Carta`. prop The editor has a `relative` position, so you can position elements absolutely |
| `components` | `CartaExtensionComponents` | Additional components, that will be put after the editor. All components are given a `carta: Carta`. prop The editor has a `relative` position, so you can position elements absolutely |
| `highlightRules` | `HighlightRule[]` | Custom markdown highlight rules. See [Speed-Highlight Wiki](https://github.com/speed-highlight/core/wiki/Create-or-suggest-new-languages). |

@@ -136,0 +141,0 @@ | `cartaRef` | `(carta: Carta) => void` | This function can be used to access a reference to the `Carta` class immediately after initialization. |

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc