cherry-markdown icon indicating copy to clipboard operation
cherry-markdown copied to clipboard

[Others] node获取之后的html ,进行css样式引入

Open win-magic opened this issue 1 year ago • 2 comments

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

win-magic avatar Mar 29 '24 09:03 win-magic

import 'cherry-markdown/dist/cherry-markdown.css';

RSS1102 avatar Mar 29 '24 09:03 RSS1102

markdown html 容器需要加上 .cherry-markdown 类名。

lyngai avatar Mar 30 '24 17:03 lyngai