
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
lys-markdown-parser
Advanced tools
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);
在浏览器中直接引用dist/lymd.min.js
使用
lymd.markdown(document.body, `# hello lymd`);
支持 audio/video/iframe
!
!!
!
FAQs
js markdown parser
The npm package lys-markdown-parser receives a total of 9 weekly downloads. As such, lys-markdown-parser popularity was classified as not popular.
We found that lys-markdown-parser demonstrated a healthy version release cadence and project activity because the last version was released less than 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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.