cherry-markdown
cherry-markdown copied to clipboard
[Others] node获取之后的html ,进行css样式引入
Prerequisites
- [ ] There isn't an existing issue with the same question or request to avoid duplicates.
Issue Type
Question
Description of the Problem or Idea
node 执行之后,获取到的 html,用 vue的 v-html 展示,没有样式,全是黑白色呢,怎么设置样式呢,对应的 css也引入了 const { default: CherryEngine } = require('cherry-markdown/dist/cherry-markdown.engine.core.common'); const cherryEngineInstance = new CherryEngine(); const htmlContent = cherryEngineInstance.makeHtml('# welcome to cherry editor!');
Further Information
No response
Contributing
None
import 'cherry-markdown/dist/cherry-markdown.css';
markdown html 容器需要加上 .cherry-markdown 类名。