Skip to content

Commit

Permalink
Add minified versions
Browse files Browse the repository at this point in the history
  • Loading branch information
vidya-ram committed May 18, 2020
1 parent 4ccebf7 commit 78de586
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 36 deletions.
Expand Up @@ -139,8 +139,14 @@
else if ('surround' == c) {
var r = t.getSelections();
for (e = 0; e < r.length; e++) r[e] = y + r[e] + S;
t.replaceSelections(r, 'around'), (r = t.listSelections().slice());
for (e = 0; e < r.length; e++) r[e] = s(r[e]);
for (
t.replaceSelections(r, 'around'),
r = t.listSelections().slice(),
e = 0;
e < r.length;
e++
)
r[e] = s(r[e]);
t.setSelections(r);
} else
'both' == c
Expand Down
80 changes: 46 additions & 34 deletions baseframe/static/js/codemirror-5.53.2/mode/markdown/markdown.min.js
Expand Up @@ -316,38 +316,45 @@
i.highlightFormatting && (n.formatting = 'image'),
g(n)
);
if (']' === l && n.imageAltText) {
i.highlightFormatting && (n.formatting = 'image');
D = g(n);
return (n.imageAltText = !1), (n.image = !1), (n.inline = n.f = d), D;
}
if (']' === l && n.imageAltText)
return (
i.highlightFormatting && (n.formatting = 'image'),
(D = g(n)),
(n.imageAltText = !1),
(n.image = !1),
(n.inline = n.f = d),
D
);
if ('[' === l && !n.image)
return n.linkText && e.match(/^.*?\]/)
? g(n)
: ((n.linkText = !0),
i.highlightFormatting && (n.formatting = 'link'),
g(n));
if (']' === l && n.linkText) {
i.highlightFormatting && (n.formatting = 'link');
D = g(n);
if (']' === l && n.linkText)
return (
i.highlightFormatting && (n.formatting = 'link'),
(D = g(n)),
(n.linkText = !1),
(n.inline = n.f = e.match(/\(.*?\)| ?\[.*?\]/, !1) ? d : f),
D
);
}
if ('<' === l && e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/, !1)) {
(n.f = n.inline = c),
i.highlightFormatting && (n.formatting = 'link');
D = g(n);
return D ? (D += ' ') : (D = ''), D + A.linkInline;
}
if ('<' === l && e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/, !1)) {
(n.f = n.inline = c),
i.highlightFormatting && (n.formatting = 'link');
D = g(n);
return D ? (D += ' ') : (D = ''), D + A.linkEmail;
}
if ('<' === l && e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/, !1))
return (
(n.f = n.inline = c),
i.highlightFormatting && (n.formatting = 'link'),
(D = g(n)),
D ? (D += ' ') : (D = ''),
D + A.linkInline
);
if ('<' === l && e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/, !1))
return (
(n.f = n.inline = c),
i.highlightFormatting && (n.formatting = 'link'),
(D = g(n)),
D ? (D += ' ') : (D = ''),
D + A.linkEmail
);
if (
i.xml &&
'<' === l &&
Expand Down Expand Up @@ -391,26 +398,31 @@
(b = !1)
: (b = !0)),
null != b || null != M)
) {
i.highlightFormatting &&
(n.formatting =
null == M ? 'strong' : null == b ? 'em' : 'strong em'),
)
return (
i.highlightFormatting &&
(n.formatting =
null == M ? 'strong' : null == b ? 'em' : 'strong em'),
!0 === M && (n.em = l),
!0 === b && (n.strong = l);
F = g(n);
return !1 === M && (n.em = !1), !1 === b && (n.strong = !1), F;
}
!0 === b && (n.strong = l),
(F = g(n)),
!1 === M && (n.em = !1),
!1 === b && (n.strong = !1),
F
);
} else if (' ' === l && (e.eat('*') || e.eat('_'))) {
if (' ' === e.peek()) return g(n);
e.backUp(1);
}
if (i.strikethrough)
if ('~' === l && e.eatWhile(l)) {
if (n.strikethrough) {
i.highlightFormatting && (n.formatting = 'strikethrough');
F = g(n);
return (n.strikethrough = !1), F;
}
if (n.strikethrough)
return (
i.highlightFormatting && (n.formatting = 'strikethrough'),
(F = g(n)),
(n.strikethrough = !1),
F
);
if (e.match(/^[^\s]/, !1))
return (
(n.strikethrough = !0),
Expand Down

0 comments on commit 78de586

Please sign in to comment.