Skip to content

Commit

Permalink
feature: 重新配置了开发环境
Browse files Browse the repository at this point in the history
- 添加umd安装方式,可以直接用cdn方式引入
- 修复es6 module方式引入的bug
  • Loading branch information
siaikin committed Oct 20, 2019
1 parent 3402957 commit c7b7005
Show file tree
Hide file tree
Showing 17 changed files with 565 additions and 447 deletions.
8 changes: 1 addition & 7 deletions demo.js → demo/demo.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import {MdReverse} from './src/index';
// var MR = require('md-reverse');
// css file
import './styles.css';
import {TablePlugin} from "./src/lib/plugins/table";

const mdReserve = new MdReverse();

mdReserve.use(new TablePlugin());
mdReserve.use(new MdReverse.TablePlugin());
const htmlArea = document.getElementById('html-area');
const mdArea = document.getElementById('markdown-area');

Expand Down
36 changes: 36 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css">
<link rel="stylesheet" href="./styles.css">
<title>MdReverse</title>
</head>
<body>
<a href="https://github.com/siaikin/mdReverse">
<img width="149" height="149" style="position: absolute;top: 0;right: 0;z-index: 1;" src="https://github.blog/wp-content/uploads/2008/12/forkme_right_darkblue_121621.png?resize=149%2C149" alt="Fork me on GitHub" data-recalc-dims="1">
</a>
<!--<div id="toolbar-container" class="columns col-gapless">-->
<!--<div class="column col-2"></div>-->
<!--<div class="column col-10"></div>-->
<!--</div>-->
<div id="main-container" class="columns col-gapless">
<div class="column col-6 p-2">
<div class="form-group">
<label class="form-label" for="html-area">HTML Text</label>
<textarea class="form-input" id="html-area" placeholder="Input HTML Text" spellcheck="false"></textarea>
</div>
</div>
<div class="column col-6 p-2">
<div class="form-group">
<label class="form-label" for="markdown-area">Markdown Text</label>
<textarea class="form-input" id="markdown-area" placeholder="Output Markdown Text" spellcheck="false" readonly></textarea>
</div>
</div>
</div>
<script src="../dist/md-reverse.demo.js" type="application/javascript"></script>
<script src="./demo.js" type="application/javascript"></script>
</body>


</html>
2 changes: 0 additions & 2 deletions styles.css → demo/styles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import "~spectre.css/dist/spectre.min.css";

body {
margin: 0;
padding: 0;
Expand Down
220 changes: 0 additions & 220 deletions dist/demo.js

This file was deleted.

30 changes: 0 additions & 30 deletions dist/index.html

This file was deleted.

1 change: 0 additions & 1 deletion dist/md-reserve.js

This file was deleted.

208 changes: 208 additions & 0 deletions dist/md-reverse.browser.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/md-reverse.browser.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c7b7005

Please sign in to comment.