Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@editora/rich-text-convert

Latest version: v0.1.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: ajaykr089
3 Stars
0 Forks
1 Versions
304 Downloads
TypeScript Repo language

Scan summary

@editora/rich-text-convert was last scanned on 29 Nov 2026 at version 0.1.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 29 Nov 2026.
  • Findings: No rules fired in version 0.1.1.
  • Downloads: 304 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.1 LATEST 29 Nov 2026 No rules fired

No rules fired in 0.1.1

Findings

Findings for v0.1.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@editora/rich-text-convert

Move content between rich-text editors. Converts Tiptap / ProseMirror JSON, Lexical, Slate, Plate, Portable Text (Sanity), Editor.js, HTML and Markdown in any direction, and tells you exactly what could not be carried over instead of silently dropping it. No dependencies, runs in Node and the browser, about 18 kB gzipped.

import { convert } from '@editora/rich-text-convert';

const { output, warnings } = convert(tiptapJson, { to: 'lexical' });
// warnings: ['Lexical has no built-in image node; images were dropped (pass imageNodes: true if your editor registers one)']

The input format is detected when from is left out. JSON formats can be passed as objects or as JSON strings.

Tiptap: the output uses StarterKit plus Table, Image, TaskList/TaskItem, Subscript, Superscript and Highlight when the content has them. Register those extensions, and pass enableContentCheck: true: without it, Tiptap silently replaces content with a node or mark it does not know by an empty document.

Formats

from / to What it is
html HTML (body content; scripts, styles and forms are ignored)
markdown CommonMark + GFM: tables, task lists, ~~strike~~; marks Markdown lacks are written as <u>, <sub>, <sup>, <mark>
tiptap editor.getJSON() with StarterKit names (bulletList, codeBlock, bold...), plus Table, Image, TaskList, Subscript, Superscript, Highlight
prosemirror doc.toJSON() with prosemirror-schema-basic, -list and -tables names (bullet_list, code_block, strong...)
lexical editor.getEditorState().toJSON() with the rich-text, list, link, code and table nodes
slate Slate value using the element names from Slate's examples (heading-one, bulleted-list, check-list-item...)
plate Plate value (p, h1, ul/li/lic, code_block/code_line, a, img...)
portable-text Sanity Portable Text blocks, spans, decorators and link markDefs
editorjs Editor.js save() output: paragraph, header, list (nested and 1.x string lists), checklist, quote, code, delimiter, image, table, raw
ast The shared document tree every conversion goes through

What gets reported

Every format can hold headings, paragraphs, bold/italic/code, links, lists and code blocks. Beyond that they differ, and each difference becomes a warning:

Target Loses Warning says
Lexical Images (no core image node; lexical: { imageNodes: true } writes them for your own ImageNode); blocks inside quotes and list items are joined Lexical has no built-in image node...
ProseMirror basic schema Underline, strike, sub/superscript, highlight; task-list checkboxes The basic ProseMirror schema has no "underline" mark...
Markdown Merged table cells; block content inside table cells ...table...
Portable Text Checkboxes, list start numbers, inline images; rules, images and tables become blocks your schema must define Portable Text lists have no start number...
Editor.js Code language; merged cells; mixed bullet/numbered nesting. Editor.js strips inline tags no tool allows: underline, highlight and inline code need the Underline, Marker and InlineCode tools, and strike, sub and superscript have no official tool Editor.js keeps "underline" only when the Underline (@editorjs/underline) inline tool is registered
Slate / Plate List start numbers; Plate checkboxes Slate lists have no start number...
Any Unknown nodes (mentions, callouts, embeds...) are unwrapped to their text or dropped Unsupported block "callout" was unwrapped

Repeated warnings are collapsed (... (12 times)), so the list stays readable for a whole site migration.

API

convert(input, { from?, to, lexical?, editorjs? }): { output, warnings: string[] }
detectFormat(input): Format
read(input, from?): Doc            // to the shared tree
write(doc, to, options?): unknown  // from the shared tree
Option
lexical.imageNodes false Write { type: 'image', src, altText } nodes
lexical.horizontalRules true Write horizontalrule nodes (HorizontalRuleNode from @lexical/react)
editorjs.lists 'nested' 'strings' writes @editorjs/list 1.x string items and a separate checklist block

read + write let you change the content in between, for example rewriting image URLs during a migration:

import { read, write } from '@editora/rich-text-convert';

const doc = read(post.body, 'portable-text');
const rewrite = (blocks) => blocks.forEach((block) => block.type === 'image' && (block.src = cdn(block.src)));
rewrite(doc.children);
const html = write(doc, 'html');

CLI

npx @editora/rich-text-convert post.json --to markdown
npx @editora/rich-text-convert notes.md --to tiptap -o notes.json
cat state.json | npx @editora/rich-text-convert - --from lexical --to html --strict

Warnings go to stderr. --strict exits with code 1 when anything was lost, for migration scripts and CI. --lexical-images and --editorjs-strings set the options above; --help lists everything.

Tested against the real editors

Besides round-trip tests for every format, the output was checked against the editors themselves (Tiptap 3.32, Lexical 0.53, Slate 0.120, @portabletext/to-html 6):

  • Tiptap's schema accepts our JSON, and it equals what Tiptap's own HTML import produces from the same HTML.
  • The ProseMirror basic + list + tables schema accepts our prosemirror JSON.
  • Lexical parses our state and re-exports it unchanged; its HTML export of it reads back as the same document.
  • Slate's normalizer leaves our slate and plate values unchanged.
  • @portabletext/to-html renders our Portable Text to the same document.

In a browser (the demo below), the output was also loaded into live Tiptap 3.32, Lexical 0.53 and Editor.js 2.31 editors, and what each editor saved back was read as the same document, apart from the losses reported as warnings.

If a document from your editor converts wrongly, please open an issue with the JSON.

Demo

npm run build -w @editora/rich-text-convert
node packages/rich-text-convert/demo/server.mjs   # http://localhost:5194

Pick a sample or paste your own content, choose the target, and the page loads the result in the real editor (from esm.sh) and checks that what the editor saves reads back as the same document.

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @editora/rich-text-convert

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229