0
0
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:
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
@@ -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 });