cherry-markdown
cherry-markdown copied to clipboard
[Bug report] 使用构建cherryEngine时html时类型报错
Describe the bug
Property 'makeHtml' does not exist on type 'CherryEngine'.
return cherryEngineInstance.makeHtml(markdown)
import CherryEngine from 'cherry-markdown/dist/cherry-markdown.engine.core' const cherryEngineInstance = new CherryEngine({}) // 配置同cherryInstance function MarkdownToHtml (markdown: string) :string { return cherryEngineInstance.makeHtml(markdown) } 这里时最小的使用方式
Reproduction
No response
System Info
No response
Validations
- [ ] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [ ] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [X] The provided reproduction is a minimal reproducible of the bug.
Help us
None