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

支持前端预览 md #9

Closed
Vanessa219 opened this issue Feb 12, 2019 · 7 comments

Comments

5 participants
@Vanessa219
Copy link
Member

commented Feb 12, 2019

  • 添加 getHTML 接口(提供代码高亮与否的选择)
  • 添加代码高亮接口
  • 使用 markdown-it 进行前端预览区域渲染
  • 使用 Lute 进行 MD lint 及格式化

@Vanessa219 Vanessa219 self-assigned this Feb 12, 2019

@Vanessa219 Vanessa219 modified the milestones: 0.1.8, 0.2.0 Feb 12, 2019

@b3log b3log deleted a comment from hejialianghe Feb 12, 2019

@WinfredWang

This comment has been minimized.

Copy link

commented Feb 15, 2019

添加 getHTML 接口

该功能是不是只展示预览区域,隐藏编辑区域?

期待该功能

@Vanessa219

This comment has been minimized.

Copy link
Member Author

commented Feb 15, 2019

@WinfredWang 编辑区域和预览区域实时同步

@Vanessa219 Vanessa219 modified the milestones: 0.2.0, 1.0.0 Feb 18, 2019

@CatchLife

This comment has been minimized.

Copy link

commented Feb 19, 2019

添加 getHTML 接口
这个希望处理好跟高亮的兼容,最佳的方式是getHTML获取到的是高亮前的代码,这样在存入数据库时不仅可以减少体积还可以在前端展示时自由选择代码高亮框架

@Vanessa219

This comment has been minimized.

Copy link
Member Author

commented Mar 4, 2019

@liov 这个需要等 @88250 把他的 Lute 撸出来

Vanessa219 added a commit that referenced this issue Mar 13, 2019

@ydq

This comment has been minimized.

Copy link

commented Mar 16, 2019

看hacpai上讨论说marked是目前你们测试下来渲染最好的,处于啥考虑最终还是选择了 markdown-it 作为前端渲染的库呢?

@Vanessa219

This comment has been minimized.

Copy link
Member Author

commented Mar 16, 2019

@ydq markdown-it 99% 通过了 commonmark 规范

@88250

This comment has been minimized.

Copy link
Member

commented Mar 16, 2019

@ydq 最近才测试了 markdown-it,渲染效果比 marked 要好一些 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.