Metrics
0
Watch 10 Star 33 Fork 8

鸿则 / marked-in-htmlJavaScriptLGPL-2.1

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
在HTML中嵌入Markdown的支持 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

Marked In HTML

HTML中书写Markdown,同时适用于impress.js

起步

<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  <link rel="stylesheet" href="https://cdn.bootcss.com/highlight.js/9.12.0/styles/atom-one-light.min.css" />
  <link rel="stylesheet" href="https://cdn.bootcss.com/github-markdown-css/2.8.0/github-markdown.min.css" />
  <title>marked in html</title>
</head>
<body>
  <template type="markdown">
    欢迎使用 Marked In HTML !
    ====
  </template>
</body>
<script src="https://cdn.bootcss.com/marked/0.3.6/marked.min.js" charset="utf-8"></script>
<script src="https://cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js" charset="utf-8"></script>
<script src="https://cdn.bootcss.com/highlight.js/9.12.0/languages/javascript.min.js" charset="utf-8"></script>
<script src="../dist/marked-in-html.min.js" charset="utf-8"></script>
<script type="text/javascript">
  markedInHtml.init()
</script>
</html>

在线示例

  1. 简易示例一
  2. 简易示例二
  3. 配合impress.js

Comments ( 8 )

You need to Sign in for post a comment

JavaScript
1
https://gitee.com/hungtcs/marked-in-html.git
git@gitee.com:hungtcs/marked-in-html.git

Help Search