mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-05-08 01:18:38 +00:00
changes names and reorders extensions
This commit is contained in:
@@ -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