
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.
vulcan-markdown-editor-cli
Advanced tools
目前已经存在很多在线的 markdown 编辑器,本着不重复造轮子的想法,奈何没有找到适合我的,(重度强迫症患者..) 于是就想想自己实现一个编辑器。当前的版本主要还是满足自己的需求,不太支持太多定制化的功能。 后续有空的话,可以考虑重新封装。
初始版本,目前支持的功能:
npm i --save vulcan-markdown-editor-cli/lib
import React from 'react';
import { MDEditor } from 'vulcan-markdown-editor-cli/lib';
import 'vulcan-markdown-editor-cli/lib/main.min.css';
export default () => {
// 图片上传配置项
const imageUploadConf = {
url: apiPath.attachments,
headers: { Authorization: `Bearer ${getToken('access')}` }
};
const initValue = '# 这是一个基于react-codemirror2打造的markdown在线编辑器';
return (
<MDEditor
imageUploadConf={imageUploadConf}
initValue={initValue}
height={'100%'}
onChange={value => {
console.log(value);
}}
/>
);
};
import React from 'react';
import { MDPriview } from 'vulcan-markdown-editor-cli/lib';
import 'vulcan-markdown-editor-cli/lib/main.min.css';
export default () => {
// markdown内容
const value = '# 这是一个基于react-codemirror2打造的markdown在线编辑器';
// 文章内容主题
const contentTheme = 'awesome-green';
// 代码高亮风格
// 目前内置(a11yDark、prism、synthwave84、tomorrow)
const codeHigTheme = 'a11yDark';
return <MDPriview value={value} contentTheme="awesome-green" codeHigTheme={codeHigTheme} />;
};
目前该组件内置四种主题:
上述主题均来自社区优秀的主题地址,再次特别鸣谢这些主题的作者,若有侵权,请联系作者删除!
FAQs
基于react-codemirror2打造的markdown在线编辑器
We found that vulcan-markdown-editor-cli 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.