渲染本地文件使用方法


渲染网络文件使用方法

根据传入的url指定的markdown文件地址,浏览器客户端尝试载入该markdown文件,并渲染展示到页面上
参数 类型 必填 说明
url URL地址字符串 取值:markdown文件地址,参数值以http/https开头
theme 字符串 默认值:bootstrap, 取值范围:["amelia","bootstrap","cerulean","cyborg","journal","readable","simplex","slate","spacelab","spruce","superhero","united"]

示例


https://wxlzmt.github.io/pages/simple/md_trans.html?url=https://cdn.jsdelivr.net/npm/vue@2.5.13/dist/README.md

https://wxlzmt.github.io/pages/simple/md_trans.html?url=https://cdn.jsdelivr.net/npm/vue@2.5.13/dist/README.md&theme=united

https://wxlzmt.github.io/pages/simple/md_trans.html?url=https://wxlzmt.github.io/resource/script/quick-start-httpd.md


解析markdown的引擎来自:
https://github.com/chjj/marked

部分样式来自
https://github.com/arturadib/strapdown

代码高亮来自
https://github.com/hongyangAndroid/Highlight