0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-07 20:58:40 +00:00

changes names and reorders extensions

This commit is contained in:
Víctor Losada Hernández
2026-04-04 21:58:28 +02:00
parent 0c5266429d
commit f7edc8a366
3 changed files with 23 additions and 13 deletions
@@ -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;