skipmaple / Paul

Paul MircoBlog
2 stars 0 forks source link

博客编辑器使用markdown #48

Open skipmaple opened 2 years ago

skipmaple commented 2 years ago

markdoc 是一种渲染方式,不是编辑器

使用markdoc 配合 stimulusjs 实现markdown实时渲染

还需要找一款markdown编辑器

skipmaple commented 2 years ago

markdown编辑器 -> codemirror

ruby markdown parser -> redcarpet

redcarpet 渲染 micropost markdoc 渲染 post

skipmaple commented 1 year ago

https://github.com/codemirror/lang-markdown

https://github.com/lezer-parser/markdown

以上是用ts写的,配置文件看不懂,需要学一下ts?

skipmaple commented 1 year ago

https://github.com/codemirror/lang-markdown

https://github.com/lezer-parser/markdown

以上是用ts写的,配置文件看不懂,需要学一下ts?

只用js部分

skipmaple commented 1 year ago

支持:

skipmaple commented 1 year ago

约定优于配置

skipmaple commented 1 year ago

markdoc 改渲染默认不大写

skipmaple commented 1 year ago

posturl 为 post title 改小写加""

skipmaple commented 1 year ago

visibility_level 写一个模块,用于 micropost 和 post