12 Star 36 Fork 8

ChineseTiger / markpage

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

MarkPage - Markdown Page (English)

An easy way to to write markdown document base on showdownjs, support table, code hightlight , mermaid charts and navigate.

Markpage is an simple independent html file.

Just import one 'markpage.js' file in your html file,

And go ahead to writing your markdown document in a <pre id="markpage" style="display:none"> or <textarea id="markpage" style="display:none"> html tag

It can be translated into HTML automatically, and generate a simple navigate when opened by the browser.

The markpage.js will load other js/css file automatically. So,

You only need to care about the specific content of all you have to write

Markpage suitable for writing text documents, convenient to use version control, such as SVN, Git saving changes.

convenient to see and diff historical change, More friendly than the binary file( like MS-Word)

The final html file like as follow:
<textarea id="markpage">
### markdown document
writing you document in here
</textarea>

<!-- only need to import markpage.js file  -->
<script src="markpage.js" type="text/javascript"></script>

NOTE: Not support for IE8 or lower version. To make life better, upgrade your browser.

Usage Template

Load CDN Resouce By cdnjs.com , English markpage.en.html

Load CDN Resouce By bootcdn.com, Chinese markpage.cn.html

Use markpage.js by CDN

If you don't like to download markpage.js file to local, You can use CDN service of my current company instead :)

This way is convenient to copy a single HTML file to any place where can be connected to the Internet to View, without markpage.js

<script src="http://cdnresource.duowan.com/kkdict/1/markpage.js" type="text/javascript"></script>

About

author qinwei

email qinwei081@gmail.com qinwei081@foxmail.com

License

MIT




MarkPage - Markdown Page (中文)

Markpage 是一个方便书写Markdown文档的JS工具库, 基于showdownjs, 支持表格, 代码高亮, mermaid语法形式的图形, 以及菜单导航.

Markpage页面是一个独立的HTML文件, 你只需要在HTML页面中引入一个markpage.js的文件,

并且将你的markdown内容写入一个<pre id="markpage"> 或者<textarea id="markpage"> 标签中即可.

用浏览器打开这个html文件, markdown内容会自动渲染成HTML页面, 并且生成一个简单的导航.

markpage.js会自动加载其他的js/css文件. 所以, 你只需要关心你想写的内容即可.

markpage适合用来写文本文档, 方便用版本控制,比如svn, Git保存变更. 比二进制方式更能方便看到和对比历史变化, 比如:MS-Word

最终的HTML文件会像这样:
<textarea id="markpage">
###markdown标题
在这里写上你的Markdown内容
</textarea>

<!-- only need to import markpage.js file  -->
<script src="markpage.js" type="text/javascript"></script>

注意: 不支持IE8或者更低版本的浏览器.

使用CDN加载markpage.js

如果你不喜欢将markpage.js文件下载到本地, 你可以使用我当前公司的CDN文件地址 :)

这种方式很方便将HTML单独拷贝到任何可以联网的地方查看, 不需要都带着markpage.js

<script src="http://cdnresource.duowan.com/kkdict/1/markpage.js" type="text/javascript"></script>

使用模板

从cdnjs.com加载CDN资源,英文版 markpage.en.html

从bootcdn.com加载CDN资源,中文版 markpage.cn.html

License

MIT

The MIT License (MIT) Copyright (c) 2015 Qin Wei (覃炜 ChineseTiger) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, andor sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

只需一个markpage就能用markdown书写支持生成导航,表格,流程图,时序图,代码高亮的html文档.Markpage让你专注于你写的内容,其他的资源都由markpage自动加载,markpage可用于写项目文档,API文档等, 方便拷贝单个HTML文件到任何地方查阅, 基于zepto,showdownjs,mermaid,highlight 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/chinesetiger/markpage.git
git@gitee.com:chinesetiger/markpage.git
chinesetiger
markpage
markpage
master

搜索帮助