Skip to content

Latest commit

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

markrun-docsify

online

<!DOCTYPE html><html><head><metacharset="UTF-8"><linkrel="stylesheet" href="//unpkg.com/docsify/themes/vue.css"></head><body><divid="app"></div></body><!-- 不需要编译 react jsx 则删除这些 script Start --><scriptsrc="//unpkg.com/es5-shim/es5-shim.min.js"></script><scriptsrc="//unpkg.com/es5-shim/es5-sham.min.js"></script><scriptsrc="//unpkg.com/console-polyfill"></script><scriptsrc="//unpkg.com/react@0.14.8/dist/react.min.js"></script><scriptsrc="//unpkg.com/react-dom@0.14.8/dist/react-dom.min.js"></script><scriptsrc="//unpkg.com/react@0.13.1/dist/JSXTransformer.js"></script><!-- 不需要编译 react jsx 则删除这些 script End --><scriptsrc="//unpkg.com/markrun/dist/markrun.min.js" ></script><script>window.$docsify={markdown: function(marked){markrun.setOptions({template: '',markdownParser: marked,compile: {js: function(source){// 如果需要编译则编译 source 后 eval// eval 前必须增加 setTimeoutsetTimeout(function(){if(JSXTransformer){source=JSXTransformer.transform(source).code}eval(source)},100)return{lang: 'js',source: source,code: ''}}}})returnmarkrun}}</script><scriptsrc="https://unpkg.com/docsify@3.7.3/lib/docsify.js" data-router></script></html>

About

docsify + markrun

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors