
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
markdown365-parser
Advanced tools
A markdown parser library base vnode
基于vnode的markdown解析器。markdown语法解析由marked扩展而来,示例地址Github Pages
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>markdown365-parser</title>
<script src="dist/markdown365-parser.js"></script>
</head>
<body>
<div id="previiew"></div>
<script>
const markdwon = '## markdown365-parser'
const parser = new Markdown365Parser({
gfm: true,
tables: true,
breaks: true,
pedantic: false,
smartypants: false,
base: '',
$el: document.querySelector('#previiew')
})
parser.parse(markdown)
</script>
</body>
</html>
支持语法请查看Grammar或者Github Pages
gfm: GitHub flavored markdown语法支持. 默认: true
tables: GFM tables语法支持. 必须要求gfm为true. 默认: true
breaks: GFM line breaks解析规则支持. 必须要求gfm为true. 默认: false
pedantic: 是否尽可能遵守markdown.pl的部分内容. 不去掉一些不严格的内容. 默认: false
smartypants: 是否替换特殊符号. 默认: false
base:这里是用来指定markdwon文档中的链接地址、图片地址的前置链接,如markdown中的说有图片都指向另一个域的时候,base就可以设置为指定域名。这里这个参数主要时考虑到编写桌面markdown编辑器用的,因为编辑器打开markdown文件时,对应的图片的路径要转换为相对markdown文件所在目录的相对路径,具体可参考我的另一个项目markdown365
$el:文档要渲染到的dom节点


FAQs
A markdown parser library base vnode
We found that markdown365-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.