Liferay.Loader.define("portal-search-web$codemirror@5.62.0/addon/fold/markdown-fold",["module","exports","require","../../lib/codemirror"],(function(e,r,o){window,function(e){"use strict";e.registerHelper("fold","markdown",(function(r,o){function n(o){var n=r.getTokenTypeAt(e.Pos(o,0));return n&&/\bheader\b/.test(n)}function t(e,r,o){var t=r&&r.match(/^#+/);return t&&n(e)?t[0].length:(t=o&&o.match(/^[=\-]+\s*$/))&&n(e+1)?"="==o[0]?1:2:100}var i=r.getLine(o.line),l=r.getLine(o.line+1),d=t(o.line,i,l);if(100!==d){for(var a=r.lastLine(),f=o.line,c=r.getLine(f+2);f<a&&!(t(f+1,l,c)<=d);)++f,l=c,c=r.getLine(f+2);return{from:e.Pos(o.line,i.length),to:e.Pos(f,r.getLine(f).length)}}}))}("object"==typeof r&&"object"==typeof e?o("../../lib/codemirror"):CodeMirror)}));
//# sourceMappingURL=markdown-fold.js.map