1 parent
f3d0d3e2c9
commit
b06dedfa4a
2 files changed
+12
-13
No files matched your search
@@ -2,7 +2,6 @@ module.exports = {
|
||||
registerHomebreweryHelper : function(CodeMirror) {
|
||||
CodeMirror.registerHelper('fold', 'homebrewery', function(cm, start) {
|
||||
const matcher = /^\\page.*/;
|
||||
const firstLine = cm.getLine(start.line);
|
||||
const prevLine = cm.getLine(start.line - 1);
|
||||
|
||||
if(start.line === cm.firstLine() || prevLine.match(matcher)) {
|
||||
|
||||
Reference in new issue
Block a user