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

js markdown parser

  • 3.12.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Markdown Parser

实现了github markdown 规范

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);

iief/umd

在浏览器中直接引用dist/lymd.min.js使用

lymd.markdown(document.body, `# hello lymd`);

support rules

支持 audio/video/iframe

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

todo

  • 支持查看AST
  • 支持自定义渲染
  • 支持格式化
  • 支持对AST进行修改,并输出为字
  • 支持注释语法
  • 支持html标签解析?

issue

移步 github issue

补充说明

Keywords

FAQs

Package last updated on 07 Apr 2023

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