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

lys-markdown-parser

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lys-markdown-parser

a js markdown parser

  • 1.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Markdown Parser

demo

click here

use

npm i lys-markdown-parser
yarn add lys-markdown-parser

support highlight

import { markdown, Markdown } from 'lys-markdown-parser'
// import markdown from 'lys-markdown-parser/asset' // 可选择直接引用highlight静态资源

markdown(dom, str, {
    asset: ['/ddd/ddd/highlight.min.js', '/ddd/ddd/highlight.theme.css'], // 可以传入highlight的相关js/css资源
})

// 启用dom复用,可用在markdown编辑器
const mk = new Markdown(dom, {
    asset: [],
})

mk.update(mkStr)

support rules

支持audio/video/iframe

!![语音](src/audio)
!!![视频](src/video)
!![支持iframe](<iframe></iframe>)

issue

移步 github issue

补充说明

  • highlight.js 目前不支持显示代码行数解释在这里

Keywords

FAQs

Package last updated on 15 Dec 2018

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

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