mirror of
https://github.com/documize/community.git
synced 2025-08-05 05:25:27 +02:00
CodeMirror dependency upgraded to v5.32.0
For handling Markdown and Code section types
This commit is contained in:
parent
3337db6b27
commit
0336f84a83
351 changed files with 3408 additions and 1945 deletions
7
gui/public/codemirror/mode/gfm/gfm.js
vendored
Executable file → Normal file
7
gui/public/codemirror/mode/gfm/gfm.js
vendored
Executable file → Normal file
|
@ -81,7 +81,7 @@ CodeMirror.defineMode("gfm", function(config, modeConfig) {
|
|||
if (stream.sol() || state.ateSpace) {
|
||||
state.ateSpace = false;
|
||||
if (modeConfig.gitHubSpice !== false) {
|
||||
if(stream.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?:[a-f0-9]{7,40}\b)/)) {
|
||||
if(stream.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/)) {
|
||||
// User/Project@SHA
|
||||
// User@SHA
|
||||
// SHA
|
||||
|
@ -113,10 +113,9 @@ CodeMirror.defineMode("gfm", function(config, modeConfig) {
|
|||
};
|
||||
|
||||
var markdownConfig = {
|
||||
underscoresBreakWords: false,
|
||||
taskLists: true,
|
||||
fencedCodeBlocks: '```',
|
||||
strikethrough: true
|
||||
strikethrough: true,
|
||||
emoji: true
|
||||
};
|
||||
for (var attr in modeConfig) {
|
||||
markdownConfig[attr] = modeConfig[attr];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue