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

[Bug report] 使用构建cherryEngine时html时类型报错

Open mikufufucom opened this issue 1 year ago • 0 comments

Describe the bug

Property 'makeHtml' does not exist on type 'CherryEngine'.

return cherryEngineInstance.makeHtml(markdown)
image

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

mikufufucom avatar Nov 16 '23 07:11 mikufufucom