You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

markdown-to-quill-delta-cjs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-to-quill-delta-cjs

Convert Markdown to Quill Delta

1.0.7
latest
npmnpm
Version published
Maintainers
1
Created
Source

NPM
Build Status

Markdown to Quill Delta converter

Converts Markdown to Quill Delta using remark.

Status

FeatureStatus
Paragraphs
Headers
Text
Strong
Emphasis
Delete
Code blocks
Quote blocks
Lists
Checkboxes
Links✅¹
Images
Custom Extension

¹: reference-style links are not yet supported

Usage

import markdownToDelta from 'markdown-to-quill-delta'
const ops = markdownToDelta(markdown)

Custom Extension:

import markdownToDelta from 'markdown-to-quill-delta'
const input = '---'
const ops = markdownToDelta(input, {
  handle: ({ node, ops }) => {
    if (node.type === 'thematicBreak') {
      ops.push(
        {
          attributes: {
            class: 'cut-off',
          },
          insert: {
            'cut-off': {
              type: '0',
              url: 'https://i0.hdslb.com/bfs/article/0117cbba35e51b0bce5f8c2f6a838e8a087e8ee7.png',
            },
          },
        },
        {
          insert: '\n',
        },
      )
      return true
    }
  },
})

What about Delta to Markdown?

See here.

License

Developed by Sebastian Frysztak.
Licensed under ISC License.

Keywords

remark

FAQs

Package last updated on 16 Jul 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