Tencent / Tencent/cherry-markdown
[Bug report]使用cherryInstance.engine.makeHtml(context)直接渲染页面的时候复制按钮无法点击
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4.9k
- Forks
- 572
- Avg merge
- 17h 5m
- Merged PRs (30d)
- 14
Description
Describe the bug
当使用cherryInstance.engine.makeHtml(context)来生成html并渲染到页面的时候,如果有代码块,点击复制代码按钮无法触发复制操作。
这个需求是不需要有markdown编辑框,仅仅用来显示数据库中存的多个markdown代码片段。所以只用了engine.makeHtml
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with engine.makeHtml(context) and a rendered code block, without a Markdown editor. Inspect how the code-copy button is connected in this standalone rendering path. Done means the copy action works for code blocks generated from stored Markdown fragments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100