cherry-markdown
cherry-markdown copied to clipboard
[Others] 纯HTML页面使用CherryEngine
Clear and concise description of the problem or idea.
<script src="../../js/cherry-markdown.engine.core.js"></script>
mounted() {
this.cherryEngineInstance= new CherryEngine()
}
结果报错:
"Uncaught TypeError: CherryEngine is not a constructor",
不使用Nodejs,怎么使用CherryEngine渲染markdown文本
cherry-markdown.engine.core.js好像不支持UMD方式,这种场景可以先使用cherry.engine来访问engine的api哈,我们也看下能否让engine也支持UMD方式。
谢谢,用cherry.engine成功了