mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-25 21:28:10 +00:00
Force \page on V3 to be alone on line.
This commit is contained in:
@@ -121,7 +121,7 @@ const Editor = createClass({
|
||||
|
||||
// New Codemirror styling for V3 renderer
|
||||
if(this.props.renderer == 'V3') {
|
||||
if(line.startsWith('\\page')){
|
||||
if(line.match(/^\\page$/)){
|
||||
codeMirror.addLineClass(lineNumber, 'background', 'pageLine');
|
||||
r.push(lineNumber);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user