changes names and reorders extensions
This commit is contained in:
1 parent
0c5266429d
commit
f7edc8a366
3 files changed
+23
-13
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { foldService, codeFolding } from '@codemirror/language';
|
||||
|
||||
const pageFoldExtension = [
|
||||
const foldOnPages = [
|
||||
foldService.of((state, lineStart)=>{ //tells where to fold
|
||||
const doc = state.doc;
|
||||
const matcher = /^(?=\\page(?:break)?(?: *{[^\n{}]*})?$)/m;
|
||||
@@ -43,4 +43,4 @@ const pageFoldExtension = [
|
||||
}),
|
||||
];
|
||||
|
||||
export default pageFoldExtension;
|
||||
export default foldOnPages;
|
||||
Reference in new issue
Block a user