-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permit the \page Token to accept {} values. #3899
base: master
Are you sure you want to change the base?
Conversation
Is there a concern that this doesn't apply to the very first page which doesn't have a |
No, though the included code also tolerates putting a |
Would you mind creating an issue for this PR? So we have a place to document and discuss the problem this is aiming to solve. |
I cannot see this working in the deployment, although the rest seems to work fine. While this syntax works for us, it is also worth mentioning that codemirror stops processing that line as a IF we did it like with tables, that you need the injection to be in the next line:
That should preserve the code hightlight, and be somewhat intuitive and consistent. I wish we could keep it in the line though |
What can you not see? Regarding the syntax highlighting - yes, that's not there yet. |
adding |
No. It won't. This syntax only works on a |
For the first page, @5e-Cleric : |
Also, I'll just add this discussion that was on this same topic, before we started using named spans and |
Is there any risk of this breaking existing brews? I'm not sure if there would be any documents out there depending on a |
This should break no document. I have never seen or heard, or can think of any good reason to have an empty page at the top. |
This code (based on my master page code ) uses a slightly smarter function in place of the src/split('\page\n') we use now. Part of its logic is if element[0] in the split array is empty, it is dropped from the array. This allows backward compatibility with the current pattern and allows the use of |
Description
This PR allows users to apply style, class, and attribute values via the inline
{}
format to the base page for common inheritance.To Do:
Solves #3901
Usage:
Similar to an inline single mustache.
\page{wide,banna=fail,color:black}
*Reviewers, refer to this list when testing features, or suggest new items *
\page
works without values.Copy this list