Skip to content

Commit

Permalink
feat: close brackets automatically
Browse files Browse the repository at this point in the history
自动关闭括号
  • Loading branch information
yanglbme committed Dec 7, 2019
1 parent da47016 commit 5d13acb
Show file tree
Hide file tree
Showing 5 changed files with 193 additions and 243 deletions.
1 change: 1 addition & 0 deletions assets/scripts/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ let app = new Vue({
lineNumbers: false,
lineWrapping: true,
styleActiveLine: true,
autoCloseBrackets: true,
theme: this.currentEditorTheme,
mode: 'text/x-markdown'
}
Expand Down
1 change: 0 additions & 1 deletion assets/scripts/renderers/wx-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ let WxRenderer = function (opts) {

styleMapping = this.buildTheme(this.opts.theme);
let renderer = new marked.Renderer();
FuriganaMD.register(renderer);

renderer.heading = (text, level) => {
switch (level) {
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ <h3>一款高度简洁的微信 Markdown 编辑器</h3>
<script src="libs/scripts/prettify.min.js"></script>
<script src="libs/scripts/index.js"></script>
<script src="libs/scripts/jquery.min.js"></script>
<script src="libs/scripts/FuriganaMD.js"></script>
<script src="libs/scripts/closebrackets.js"></script>

<script src="assets/scripts/sync-scroll.js"></script>
<script src="assets/scripts/themes/default-theme.js"></script>
Expand Down
241 changes: 0 additions & 241 deletions libs/scripts/FuriganaMD.js

This file was deleted.

Loading

0 comments on commit 5d13acb

Please sign in to comment.