Adjust PP blockquotes for Typst#740
Conversation
|
I wasn't sure how you wanted to handle the highly indented references. I had Claude put those as quote attribution elements, but if that's the wrong thing let me know and I can move them. So just a heads up... |
|
@mattleff Don't merge yet. Kenton is looking at it. |
|
So there is a big limitation to using a Code block. The limitation is single-line evaluation. So this means that all of Typst text processing is not available inside the code block (bold, italic, and horizontal indents). setting up a new element would probably be better if we want to use any styling inside the poetry text. There is a down side to this way as well. Each manual line break must have a \ The styling would look like this: The usage would be: So I guess it depends on what the needs are for the inside text of the quotes. |
|
@kenton-r Doesn't the |
|
I am sorry, I was looking at the wrong code in the forum instead of the one you copied to here. So you are adding a block for an attridute. Are you wanting to do this on all quoted Bible verses? #quote(block: true, attribution: [(เฉลยธรรมบัญญัติ 33:26–29 THSV) #EGW[{PP 471.2}]])[ พระองค์ทรงเป็นโล่และเป็นผู้ช่วยท่าน” The code you have also deals with extra lines too. I think that the eval() is good. |
Refs #735. This solution was found here and we will need to add the
poetrydefinition in the process of rendering the documents:@bountonw I'm not sure how you're testing the rendering now. Do you have a place where you're keeping the custom functions, etc.? Do we need to set up GitHub Actions for rendering these on PRs? If you can let me know what you've figured out so far and how you want it to work I can try to hook up the plumbing.