mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
upgrade editor.md(many bug exists)
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<script src="livescript.js"></script>
|
||||
<style>.CodeMirror {font-size: 80%;border-top: 1px solid silver; border-bottom: 1px solid silver;}</style>
|
||||
<div id=nav>
|
||||
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
|
||||
<a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a>
|
||||
|
||||
<ul>
|
||||
<li><a href="../../index.html">Home</a>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
||||
|
||||
/**
|
||||
* Link to the project's GitHub page:
|
||||
@@ -24,8 +24,8 @@
|
||||
var nr = Rules[next_rule];
|
||||
if (nr.splice) {
|
||||
for (var i$ = 0; i$ < nr.length; ++i$) {
|
||||
var r = nr[i$], m;
|
||||
if (r.regex && (m = stream.match(r.regex))) {
|
||||
var r = nr[i$];
|
||||
if (r.regex && stream.match(r.regex)) {
|
||||
state.next = r.next || state.next;
|
||||
return r.token;
|
||||
}
|
||||
@@ -50,7 +50,7 @@
|
||||
startState: function(){
|
||||
return {
|
||||
next: 'start',
|
||||
lastToken: null
|
||||
lastToken: {style: null, indent: 0, content: ""}
|
||||
};
|
||||
},
|
||||
token: function(stream, state){
|
||||
|
||||
Reference in New Issue
Block a user