Socket
Socket
Sign inDemoInstall

antlr-md

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    antlr-md

使用 antlr4 开发的 markdown 解析器.


Version published
Maintainers
1
Install size
7.76 MB
Created

Readme

Source

antlr md

使用 antlr4 开发的 markdown 解析器.

特性

  • 使用 antlr4 开发
  • 使用 Typescript 语言
  • 支持浏览器环境

使用

npm i antlr-md
import { parse, render } from 'antlr-md';

const mdText = `# 大标题

## 二级标题

这是正文。

`
console.log(render(parse(mdText))) 

MD语法支持情况

  • 多级标题 (# hello)
  • 内联代码 (hello)
  • 块代码 (```)
  • 项目列表 (-)
  • 可选项目列表
  • 加粗 (**)
  • 倾斜字体 (*)
  • 删除线 (~)
  • HTML 标签支持

License

MIT

FAQs

Last updated on 06 May 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc