Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Others] 纯HTML页面使用CherryEngine #996

Open
fazheer opened this issue Dec 10, 2024 · 2 comments
Open

[Others] 纯HTML页面使用CherryEngine #996

fazheer opened this issue Dec 10, 2024 · 2 comments
Labels
pending-no-confirmed The direction of this issue has not yet been determined.

Comments

@fazheer
Copy link

fazheer commented Dec 10, 2024

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文本

@fazheer fazheer added the pending-no-confirmed The direction of this issue has not yet been determined. label Dec 10, 2024
@sunsonliu
Copy link
Collaborator

cherry-markdown.engine.core.js好像不支持UMD方式,这种场景可以先使用cherry.engine来访问engine的api哈,我们也看下能否让engine也支持UMD方式。

@fazheer
Copy link
Author

fazheer commented Dec 11, 2024

谢谢,用cherry.engine成功了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-no-confirmed The direction of this issue has not yet been determined.
Projects
None yet
Development

No branches or pull requests

2 participants