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
@@ -26,6 +26,8 @@ export function tokenizeCustomMarkdown(text) {
|
||||
const tokens = [];
|
||||
const lines = text.split('\n');
|
||||
|
||||
//tokens without a `from` or `to` are interpreted by the custom plugin as line tokens
|
||||
|
||||
lines.forEach((lineText, lineNumber)=>{
|
||||
// --- Page / snippet lines ---
|
||||
if(/^(?=\\page(?:break)?(?: *{[^\n{}]*})?$)/m.test(lineText)) tokens.push({ line: lineNumber, type: customTags.pageLine });
|
||||
|
||||
Reference in new issue
Block a user