hashmd icon indicating copy to clipboard operation
hashmd copied to clipboard

如何导出html和markdown代码?

Open jaychou2012 opened this issue 3 years ago • 7 comments

如何导出html和markdown代码?

jaychou2012 avatar Jun 07 '22 02:06 jaychou2012

如何导出html和markdown代码?

你说的导出是指文件还是console输出? You said that the export is refers to the file or the console output?

heiyehk avatar Jun 20 '22 07:06 heiyehk

console输出

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年6月20日(星期一) 下午3:30 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [bytedance/bytemd] 如何导出html和markdown代码? (Issue #197)

如何导出html和markdown代码?

你说的导出是指文件还是console输出? You said that the export is refers to the file or the console output?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jaychou2012 avatar Jun 20 '22 08:06 jaychou2012

console输出 ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年6月20日(星期一) 下午3:30 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [bytedance/bytemd] 如何导出html和markdown代码? (Issue #197) 如何导出html和markdown代码? 你说的导出是指文件还是console输出? You said that the export is refers to the file or the console output? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

https://bytemd.netlify.app/#usage

这里有具体的使用教程

heiyehk avatar Jun 20 '22 09:06 heiyehk

@heiyehk 需要类似这样的api,https://nhn.github.io/tui.editor/latest/ToastUIEditorCore#getHTML

简单的使用场景,直接存储渲染后的html到db,这样就可以做页面缓存。不需要每次显示文章内容都走viewer降低页面渲染速度

codingcn avatar Jul 13 '22 02:07 codingcn

这里可能需要注意一点,部分情况下 HTML 中并不包括全量的内容信息。比如 plugin 中使用了 viewerEffect hook 的情况下,有一部分效果是在浏览器中执行 JS 代码动态生成的,最终渲染效果可能会由于环境的不同而有差异

pd4d10 avatar Jul 13 '22 11:07 pd4d10

请问有 getHtml 的 Api 吗

dvlin-dev avatar Sep 02 '22 15:09 dvlin-dev

E-MAIL 已收到。  

jaychou2012 avatar Sep 02 '22 15:09 jaychou2012

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Nov 02 '22 02:11 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar Nov 09 '22 02:11 github-actions[bot]