User manual and reference guide
- version 4.6.0
+ version 4.6.1
CodeMirror is a code-editor component that can be embedded in
diff --git a/lib/codemirror.js b/lib/codemirror.js
index 97f6668e73..4059e03d0a 100644
--- a/lib/codemirror.js
+++ b/lib/codemirror.js
@@ -7825,7 +7825,7 @@
// THE END
- CodeMirror.version = "4.6.0";
+ CodeMirror.version = "4.6.1";
return CodeMirror;
});
diff --git a/package.json b/package.json
index 924c076f2c..d0d76c0715 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "codemirror",
- "version":"4.6.0",
+ "version":"4.6.1",
"main": "lib/codemirror.js",
"description": "In-browser code editing made bearable",
"licenses": [{"type": "MIT",
From 56f9e5cc28afdc7884e2ac4be8e588f46f63aa8a Mon Sep 17 00:00:00 2001
From: Beni Cherniavsky-Paskin
Date: Fri, 19 Sep 2014 02:26:11 +0300
Subject: [PATCH 02/83] [markdown mode] test case for #2813
after header immediately followed by a code block, GFM formatting is
broken (SHA, #issue, URLs).
overlay.codeBlock gets it wrong (false inside fenced block, true after).
Not yet sure why.
---
mode/gfm/test.js | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/mode/gfm/test.js b/mode/gfm/test.js
index 78ffff2d7b..b9af5e894c 100644
--- a/mode/gfm/test.js
+++ b/mode/gfm/test.js
@@ -150,4 +150,15 @@
"[comment `foo]",
"",
"[link http://www.example.com/]");
+
+ MT("headerCodeBlockGithub",
+ "[header&header-1 # heading]",
+ "",
+ "[comment ```]",
+ "[comment code]",
+ "[comment ```]",
+ "",
+ "Commit: [link be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2]",
+ "Issue: [link #1]",
+ "Link: [link http://www.example.com/]");
})();
From ed21e488b95fbbca656ae77410c1ce0b6f3eea31 Mon Sep 17 00:00:00 2001
From: Brandon Frohs
Date: Sun, 21 Sep 2014 02:46:11 -0400
Subject: [PATCH 03/83] [markdown] Fix handling of forced blank lines (after
headers)
Closes #2813
---
mode/markdown/markdown.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/mode/markdown/markdown.js b/mode/markdown/markdown.js
index 1bad78d65e..3eb7747e60 100644
--- a/mode/markdown/markdown.js
+++ b/mode/markdown/markdown.js
@@ -700,14 +700,15 @@ CodeMirror.defineMode("markdown", function(cmCfg, modeCfg) {
state.formatting = false;
if (stream.sol()) {
- var forceBlankLine = stream.match(/^\s*$/, true) || state.header;
+ var forceBlankLine = !!state.header;
// Reset state.header
state.header = 0;
- if (forceBlankLine) {
+ if (stream.match(/^\s*$/, true) || forceBlankLine) {
state.prevLineHasContent = false;
- return blankLine(state);
+ blankLine(state);
+ return forceBlankLine ? this.token(stream, state) : null;
} else {
state.prevLineHasContent = state.thisLineHasContent;
state.thisLineHasContent = true;
From 6120e8d64308573784919911fe3930acbee6acf1 Mon Sep 17 00:00:00 2001
From: Marijn Haverbeke
Date: Mon, 22 Sep 2014 13:01:15 +0200
Subject: [PATCH 04/83] [dylan mode] Remove executable flag on mode demo page
Closes #2816
---
mode/dylan/index.html | 0
1 file changed, 0 insertions(+), 0 deletions(-)
mode change 100755 => 100644 mode/dylan/index.html
diff --git a/mode/dylan/index.html b/mode/dylan/index.html
old mode 100755
new mode 100644
From 50cf44c40c339db5084d79b24b973771535e0cd8 Mon Sep 17 00:00:00 2001
From: Marijn Haverbeke
Date: Tue, 23 Sep 2014 15:55:09 +0200
Subject: [PATCH 05/83] Move to new github repository (under codemirror
organization)
---
CONTRIBUTING.md | 4 +--
README.md | 2 +-
demo/activeline.html | 2 +-
demo/anywordhint.html | 2 +-
demo/bidi.html | 4 +--
demo/btree.html | 2 +-
demo/buffers.html | 2 +-
demo/changemode.html | 2 +-
demo/closebrackets.html | 2 +-
demo/closetag.html | 2 +-
demo/complete.html | 2 +-
demo/emacs.html | 2 +-
demo/folding.html | 2 +-
demo/fullscreen.html | 2 +-
demo/hardwrap.html | 2 +-
demo/html5complete.html | 2 +-
demo/indentwrap.html | 2 +-
demo/lint.html | 2 +-
demo/loadmode.html | 2 +-
demo/marker.html | 2 +-
demo/markselection.html | 2 +-
demo/matchhighlighter.html | 2 +-
demo/matchtags.html | 2 +-
demo/merge.html | 2 +-
demo/multiplex.html | 2 +-
demo/mustache.html | 2 +-
demo/placeholder.html | 2 +-
demo/preview.html | 2 +-
demo/requirejs.html | 2 +-
demo/resize.html | 2 +-
demo/rulers.html | 2 +-
demo/runmode.html | 2 +-
demo/search.html | 2 +-
demo/spanaffectswrapping_shim.html | 2 +-
demo/sublime.html | 2 +-
demo/tern.html | 2 +-
demo/theme.html | 2 +-
demo/trailingspace.html | 2 +-
demo/variableheight.html | 2 +-
demo/vim.html | 2 +-
demo/visibletabs.html | 2 +-
demo/widget.html | 2 +-
demo/xmlcomplete.html | 2 +-
doc/compress.html | 2 +-
doc/internals.html | 2 +-
doc/manual.html | 4 +--
doc/realworld.html | 4 +--
doc/releases.html | 66 +++++++++++++++++++-------------------
doc/reporting.html | 2 +-
doc/upgrade_v2.2.html | 2 +-
doc/upgrade_v3.html | 2 +-
doc/upgrade_v4.html | 2 +-
index.html | 6 ++--
mode/apl/index.html | 2 +-
mode/asterisk/index.html | 2 +-
mode/clike/index.html | 2 +-
mode/clike/scala.html | 2 +-
mode/clojure/index.html | 2 +-
mode/cobol/index.html | 2 +-
mode/coffeescript/index.html | 2 +-
mode/commonlisp/index.html | 2 +-
mode/css/index.html | 2 +-
mode/css/less.html | 2 +-
mode/css/scss.html | 2 +-
mode/cypher/index.html | 2 +-
mode/d/index.html | 2 +-
mode/diff/index.html | 2 +-
mode/django/index.html | 2 +-
mode/dtd/dtd.js | 2 +-
mode/dtd/index.html | 2 +-
mode/dylan/index.html | 2 +-
mode/ecl/index.html | 2 +-
mode/eiffel/index.html | 2 +-
mode/erlang/index.html | 2 +-
mode/fortran/index.html | 2 +-
mode/gas/index.html | 2 +-
mode/gfm/index.html | 2 +-
mode/gherkin/gherkin.js | 2 +-
mode/gherkin/index.html | 2 +-
mode/go/index.html | 2 +-
mode/groovy/index.html | 2 +-
mode/haml/index.html | 2 +-
mode/haskell/index.html | 2 +-
mode/haxe/index.html | 2 +-
mode/htmlembedded/index.html | 2 +-
mode/htmlmixed/index.html | 2 +-
mode/http/index.html | 2 +-
mode/index.html | 2 +-
mode/jade/index.html | 2 +-
mode/javascript/index.html | 2 +-
mode/javascript/json-ld.html | 2 +-
mode/javascript/typescript.html | 2 +-
mode/jinja2/index.html | 2 +-
mode/julia/index.html | 2 +-
mode/kotlin/index.html | 2 +-
mode/livescript/index.html | 2 +-
mode/lua/index.html | 2 +-
mode/markdown/index.html | 2 +-
mode/mirc/index.html | 2 +-
mode/mllike/index.html | 2 +-
mode/modelica/index.html | 2 +-
mode/nginx/index.html | 2 +-
mode/ntriples/index.html | 2 +-
mode/octave/index.html | 2 +-
mode/pascal/index.html | 2 +-
mode/pegjs/index.html | 2 +-
mode/perl/index.html | 2 +-
mode/php/index.html | 2 +-
mode/pig/index.html | 2 +-
mode/properties/index.html | 2 +-
mode/puppet/index.html | 2 +-
mode/python/index.html | 2 +-
mode/q/index.html | 2 +-
mode/r/index.html | 2 +-
mode/rpm/changes/index.html | 2 +-
mode/rpm/index.html | 2 +-
mode/rst/index.html | 2 +-
mode/ruby/index.html | 2 +-
mode/rust/index.html | 2 +-
mode/sass/index.html | 2 +-
mode/scheme/index.html | 2 +-
mode/shell/index.html | 2 +-
mode/sieve/index.html | 2 +-
mode/slim/index.html | 2 +-
mode/smalltalk/index.html | 2 +-
mode/smarty/index.html | 2 +-
mode/smartymixed/index.html | 2 +-
mode/solr/index.html | 2 +-
mode/sparql/index.html | 2 +-
mode/sql/index.html | 2 +-
mode/stex/index.html | 2 +-
mode/tcl/index.html | 2 +-
mode/tiddlywiki/index.html | 2 +-
mode/tiki/index.html | 2 +-
mode/toml/index.html | 2 +-
mode/turtle/index.html | 2 +-
mode/vb/index.html | 2 +-
mode/vbscript/index.html | 2 +-
mode/velocity/index.html | 2 +-
mode/verilog/index.html | 2 +-
mode/xml/index.html | 2 +-
mode/xquery/index.html | 2 +-
mode/yaml/index.html | 2 +-
mode/z80/index.html | 2 +-
package.json | 4 +--
test/index.html | 2 +-
theme/mdn-like.css | 2 +-
147 files changed, 186 insertions(+), 186 deletions(-)
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 3624a39e2b..47006a17f4 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -12,7 +12,7 @@ Community discussion, questions, and informal bug reporting is done on the
## Submitting bug reports
The preferred way to report bugs is to use the
-[GitHub issue tracker](http://github.com/marijnh/CodeMirror/issues). Before
+[GitHub issue tracker](http://github.com/codemirror/CodeMirror/issues). Before
reporting a bug, read these pointers.
**Note:** The issue tracker is for *bugs*, not requests for help. Questions
@@ -48,7 +48,7 @@ should be asked on the
## Contributing code
- Make sure you have a [GitHub Account](https://github.com/signup/free)
-- Fork [CodeMirror](https://github.com/marijnh/CodeMirror/)
+- Fork [CodeMirror](https://github.com/codemirror/CodeMirror/)
([how to fork a repo](https://help.github.com/articles/fork-a-repo))
- Make your changes
- If your changes are easy to test or likely to regress, add tests.
diff --git a/README.md b/README.md
index 6a0011b6be..be81882063 100644
--- a/README.md
+++ b/README.md
@@ -8,4 +8,4 @@ in, it will color your code, and optionally help with indentation.
The project page is http://codemirror.net
The manual is at http://codemirror.net/doc/manual.html
-The contributing guidelines are in [CONTRIBUTING.md](https://github.com/marijnh/CodeMirror/blob/master/CONTRIBUTING.md)
+The contributing guidelines are in [CONTRIBUTING.md](https://github.com/codemirror/CodeMirror/blob/master/CONTRIBUTING.md)
diff --git a/demo/activeline.html b/demo/activeline.html
index 14851c35e4..c1391ef27e 100644
--- a/demo/activeline.html
+++ b/demo/activeline.html
@@ -17,7 +17,7 @@
- Active Line
diff --git a/demo/anywordhint.html b/demo/anywordhint.html
index c76b997bf5..d20c97ba1f 100644
--- a/demo/anywordhint.html
+++ b/demo/anywordhint.html
@@ -16,7 +16,7 @@
- Any Word Completion
diff --git a/demo/bidi.html b/demo/bidi.html
index 569693c875..13a6771672 100644
--- a/demo/bidi.html
+++ b/demo/bidi.html
@@ -16,7 +16,7 @@
Note: There is
- a known
+ a known
bug with cursor motion and mouse clicks in bi-directional lines
that are line wrapped.
diff --git a/demo/btree.html b/demo/btree.html
index b7bd39088d..cc644b19b9 100644
--- a/demo/btree.html
+++ b/demo/btree.html
@@ -16,7 +16,7 @@
- B-Tree visualization
diff --git a/demo/buffers.html b/demo/buffers.html
index 951209cad5..a656a6c378 100644
--- a/demo/buffers.html
+++ b/demo/buffers.html
@@ -17,7 +17,7 @@
- Multiple Buffer & Split View
diff --git a/demo/changemode.html b/demo/changemode.html
index ad4c9d1b2c..36175aeea5 100644
--- a/demo/changemode.html
+++ b/demo/changemode.html
@@ -17,7 +17,7 @@
- Mode-Changing
diff --git a/demo/closebrackets.html b/demo/closebrackets.html
index f7d5afbd87..b9d299d911 100644
--- a/demo/closebrackets.html
+++ b/demo/closebrackets.html
@@ -17,7 +17,7 @@
- Closebrackets
diff --git a/demo/closetag.html b/demo/closetag.html
index 39ca8b3f51..5e43391f19 100644
--- a/demo/closetag.html
+++ b/demo/closetag.html
@@ -21,7 +21,7 @@
- Close-Tag
diff --git a/demo/complete.html b/demo/complete.html
index 047a7ecca4..3a17810825 100644
--- a/demo/complete.html
+++ b/demo/complete.html
@@ -17,7 +17,7 @@
- Autocomplete
diff --git a/demo/emacs.html b/demo/emacs.html
index 5b622a9992..3efa57456f 100644
--- a/demo/emacs.html
+++ b/demo/emacs.html
@@ -23,7 +23,7 @@
- Emacs bindings
diff --git a/demo/folding.html b/demo/folding.html
index 8126c5c705..3f20484227 100644
--- a/demo/folding.html
+++ b/demo/folding.html
@@ -29,7 +29,7 @@
- Code Folding
diff --git a/demo/fullscreen.html b/demo/fullscreen.html
index 0a11f31924..f027efe502 100644
--- a/demo/fullscreen.html
+++ b/demo/fullscreen.html
@@ -17,7 +17,7 @@
- Full Screen Editing
diff --git a/demo/hardwrap.html b/demo/hardwrap.html
index 598bf957df..0aaea0c5d9 100644
--- a/demo/hardwrap.html
+++ b/demo/hardwrap.html
@@ -17,7 +17,7 @@
- Hard-wrapping
diff --git a/demo/html5complete.html b/demo/html5complete.html
index 94ced527d0..2a7c57ab6d 100644
--- a/demo/html5complete.html
+++ b/demo/html5complete.html
@@ -27,7 +27,7 @@
- HTML completion
diff --git a/demo/indentwrap.html b/demo/indentwrap.html
index efdba5d59e..ca13b1a17b 100644
--- a/demo/indentwrap.html
+++ b/demo/indentwrap.html
@@ -17,7 +17,7 @@
- Indented wrapped line
diff --git a/demo/lint.html b/demo/lint.html
index 2129885298..f792f5da32 100644
--- a/demo/lint.html
+++ b/demo/lint.html
@@ -25,7 +25,7 @@
- Linter
diff --git a/demo/loadmode.html b/demo/loadmode.html
index be28c7a81d..80fda584d8 100644
--- a/demo/loadmode.html
+++ b/demo/loadmode.html
@@ -16,7 +16,7 @@
- Lazy Mode Loading
diff --git a/demo/marker.html b/demo/marker.html
index ac4dfda893..80fd370e02 100644
--- a/demo/marker.html
+++ b/demo/marker.html
@@ -18,7 +18,7 @@
- Breakpoint
diff --git a/demo/markselection.html b/demo/markselection.html
index d729515e58..14242579c0 100644
--- a/demo/markselection.html
+++ b/demo/markselection.html
@@ -20,7 +20,7 @@
- Selection Marking
diff --git a/demo/matchhighlighter.html b/demo/matchhighlighter.html
index 170213bfc5..2a95f3c849 100644
--- a/demo/matchhighlighter.html
+++ b/demo/matchhighlighter.html
@@ -22,7 +22,7 @@
- Match Highlighter
diff --git a/demo/matchtags.html b/demo/matchtags.html
index ba4b3645d9..0a02941d0f 100644
--- a/demo/matchtags.html
+++ b/demo/matchtags.html
@@ -18,7 +18,7 @@
- Tag Matcher
diff --git a/demo/merge.html b/demo/merge.html
index e592ab3627..b8f2e45ba1 100644
--- a/demo/merge.html
+++ b/demo/merge.html
@@ -26,7 +26,7 @@
- merge view
diff --git a/demo/multiplex.html b/demo/multiplex.html
index 2ad9608a82..1e2d1b8fef 100644
--- a/demo/multiplex.html
+++ b/demo/multiplex.html
@@ -18,7 +18,7 @@
- Multiplexing Parser
diff --git a/demo/mustache.html b/demo/mustache.html
index cb0291598a..5dcbca5259 100644
--- a/demo/mustache.html
+++ b/demo/mustache.html
@@ -18,7 +18,7 @@
- Overlay Parser
diff --git a/demo/placeholder.html b/demo/placeholder.html
index 6cf098b01a..eb70886b95 100644
--- a/demo/placeholder.html
+++ b/demo/placeholder.html
@@ -19,7 +19,7 @@
- Placeholder
diff --git a/demo/preview.html b/demo/preview.html
index d2aada3c80..47615f5f76 100644
--- a/demo/preview.html
+++ b/demo/preview.html
@@ -30,7 +30,7 @@
- HTML5 preview
diff --git a/demo/requirejs.html b/demo/requirejs.html
index 6399f8d769..01197962d0 100644
--- a/demo/requirejs.html
+++ b/demo/requirejs.html
@@ -19,7 +19,7 @@
- HTML completion
diff --git a/demo/resize.html b/demo/resize.html
index 10326ef66f..2fb6e108d5 100644
--- a/demo/resize.html
+++ b/demo/resize.html
@@ -23,7 +23,7 @@
- Autoresize
diff --git a/demo/rulers.html b/demo/rulers.html
index 0f8397af20..04abc96d13 100644
--- a/demo/rulers.html
+++ b/demo/rulers.html
@@ -16,7 +16,7 @@
- Ruler demo
diff --git a/demo/runmode.html b/demo/runmode.html
index 144783d347..a1b400606d 100644
--- a/demo/runmode.html
+++ b/demo/runmode.html
@@ -14,7 +14,7 @@
- Mode Runner
diff --git a/demo/search.html b/demo/search.html
index 21c9b278a9..896526e587 100644
--- a/demo/search.html
+++ b/demo/search.html
@@ -21,7 +21,7 @@
- Search/Replace
diff --git a/demo/spanaffectswrapping_shim.html b/demo/spanaffectswrapping_shim.html
index e598221c0c..8271241259 100644
--- a/demo/spanaffectswrapping_shim.html
+++ b/demo/spanaffectswrapping_shim.html
@@ -10,7 +10,7 @@
- Automatically derive odd wrapping behavior for your browser
diff --git a/demo/sublime.html b/demo/sublime.html
index f9115f57be..ec9fdb3ac0 100644
--- a/demo/sublime.html
+++ b/demo/sublime.html
@@ -30,7 +30,7 @@
- Sublime bindings
diff --git a/demo/tern.html b/demo/tern.html
index 57027f7267..01e734c5ba 100644
--- a/demo/tern.html
+++ b/demo/tern.html
@@ -32,7 +32,7 @@
- Tern
diff --git a/demo/theme.html b/demo/theme.html
index 4d59d24359..f558b21c32 100644
--- a/demo/theme.html
+++ b/demo/theme.html
@@ -47,7 +47,7 @@
- Theme
diff --git a/demo/trailingspace.html b/demo/trailingspace.html
index c3e9c37636..5e5a6e06e3 100644
--- a/demo/trailingspace.html
+++ b/demo/trailingspace.html
@@ -21,7 +21,7 @@
- Trailing Whitespace
diff --git a/demo/variableheight.html b/demo/variableheight.html
index 98f2fd29d0..d993572898 100644
--- a/demo/variableheight.html
+++ b/demo/variableheight.html
@@ -25,7 +25,7 @@
- Variable Height
diff --git a/demo/vim.html b/demo/vim.html
index cc616759f0..9e75163b6d 100644
--- a/demo/vim.html
+++ b/demo/vim.html
@@ -21,7 +21,7 @@
- Vim bindings
diff --git a/demo/visibletabs.html b/demo/visibletabs.html
index 5a5a19aa01..0c8ca3a889 100644
--- a/demo/visibletabs.html
+++ b/demo/visibletabs.html
@@ -21,7 +21,7 @@
- Visible tabs
diff --git a/demo/widget.html b/demo/widget.html
index cc06968d8c..e096173765 100644
--- a/demo/widget.html
+++ b/demo/widget.html
@@ -19,7 +19,7 @@
- Inline Widget
diff --git a/demo/xmlcomplete.html b/demo/xmlcomplete.html
index b1ff1fe26b..ab4a8513a0 100644
--- a/demo/xmlcomplete.html
+++ b/demo/xmlcomplete.html
@@ -19,7 +19,7 @@
- XML Autocomplete
diff --git a/doc/compress.html b/doc/compress.html
index 4fdcc1331c..5dc69b5101 100644
--- a/doc/compress.html
+++ b/doc/compress.html
@@ -13,7 +13,7 @@
- Compression helper
diff --git a/doc/internals.html b/doc/internals.html
index 3f1b7de869..c6a3798cc4 100644
--- a/doc/internals.html
+++ b/doc/internals.html
@@ -12,7 +12,7 @@
- Introduction
diff --git a/doc/manual.html b/doc/manual.html
index e0378103f7..0fdf8d5cdc 100644
--- a/doc/manual.html
+++ b/doc/manual.html
@@ -28,7 +28,7 @@