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:
@@ -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