CoreFiles by mySites.guru
markdown-fold.min.js1 lines, 725 bytes, from Joomla_3.6.5-Stable-Full_Package.zip
Raw History Compare with 3.6.4
md5
93c78fd5f4ee45ca43b81db49eeeabcc
sha1
26c882f3463289e97d098c8324d2982cdd6da0e0
sha256
0de215d3212f607fb7a7792e0aee99882f2e05f4cb32f43f04932900116692fa
!function(a){"object"==typeof exports&&"object"==typeof module?a(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],a):a(CodeMirror)}(function(a){"use strict";a.registerHelper("fold","markdown",function(b,c){function d(c){var d=b.getTokenTypeAt(a.Pos(c,0));return d&&/\bheader\b/.test(d)}function e(a,b,c){var e=b&&b.match(/^#+/);return e&&d(a)?e[0].length:(e=c&&c.match(/^[=\-]+\s*$/),e&&d(a+1)?"="==c[0]?1:2:f)}var f=100,g=b.getLine(c.line),h=b.getLine(c.line+1),i=e(c.line,g,h);if(i===f)return void 0;for(var j=b.lastLine(),k=c.line,l=b.getLine(k+2);j>k&&!(e(k+1,h,l)<=i);)++k,h=l,l=b.getLine(k+2);return{from:a.Pos(c.line,g.length),to:a.Pos(k,b.getLine(k).length)}})});

The same content is in 40 releases, Joomla 3.4.2-rc to 3.6.5. See them all, or every version of this file.