0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-03 14:52:38 +00:00

Allow empty braces: \page{}

This commit is contained in:
Trevor Buckner
2025-01-27 23:27:03 -05:00
parent f1ff032e1e
commit be18843b09
2 changed files with 2 additions and 4 deletions

View File

@@ -126,7 +126,7 @@ const BrewRenderer = (props)=>{
if(props.renderer == 'legacy') {
rawPages = props.text.split('\\page');
} else {
rawPages = props.text.split(/^(?=\\page(?:{[^\n{}]+})?$)/gm);
rawPages = props.text.split(/^(?=\\page(?:{[^\n{}]*})?$)/gm);
}
const handlePageVisibilityChange = (pageNum, isVisible, isCenter)=>{