-
Notifications
You must be signed in to change notification settings - Fork 330
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
rendering a gt table with typst in R quarto #11610
Comments
I think there are several things here. First, using So use markdown syntax only:
https://pandoc.org/MANUAL.html#extension-escaped_line_breaks But this won't work for footer in typst table because of some processing we do. Any markdown styling is lost. 🤔 |
I think there is a combination of factor leading to wrong parsing here
This means the HTML passed to quarto by gt is seen as HTML and so not applying to typst. So something to look into in gt first IMO. @rich-iannone what do you think ? Maybe we need to consider Anyway, I would have expected |
thanks for looking into this. Is there any way in quarto or typst templates to force an automatic linebreak or anything to force the dislay of the table with the column widths specified in gt? |
Funny, this works for me. What am I doing differently? I use the With table.footer(table.cell(colspan: 4)[#emph[Bla];. hello i’m a footnote thats \
too long for this table.],),
Diffing our |
@gordonwoodhull What's the version of
|
It seems
|
I was able to pinpoint where this breaking change happened. |
Thanks @mcanouil. Yes, I was on 0.10.1 but upgrading to 0.11.1 I see the lost line break. And I also see what @cderv is saying about the
|
Thanks for reporting and letting me know what happened here. I'll create a fix soon for this regression (and then add some more gt/Quarto testing). |
Bug description
I'm trying to create a quarto document and render it to pdf via typst. I have source notes for my gt tables which don't accept any line break via \ or <br>. It works fine if just run in R but once rendered the line break doesn't work and it keeps the table at the width the source note occupies, no matter what I specify in
cols_width()
When rendered to html the line breaks. But I can't get the line to break (and more importantly to make
cols_width()
work) when rendering to typst. Any help would be much appreciated.I'm sorry if this is the wrong place to post it but I'm not sure if this is for quarto, gt, or typst to solve...
Steps to reproduce
Expected behavior
A gt table in pdf with the source note accepting a line break.
Actual behavior
No line break accepted
Your environment
RStudio 2023.12.1
R 4.4.0
Windows 11
Quarto check output
The text was updated successfully, but these errors were encountered: