Skip to content

Conversation

@cderv
Copy link
Collaborator

@cderv cderv commented May 7, 2024

Especially because powerpoint does not allow Div and Tables in DivWelcome to the quarto GitHub repo!

fixes #9365

@cderv
Copy link
Collaborator Author

cderv commented May 7, 2024

@cscheid I labelled #9365 has regression because it was working with 1.3.

Is this ok to backport this change to you ?

Depending on this, I'll add to changelog in the right place.

@cderv cderv changed the title Parsed HTM table wrapping div needs to be scaffold so that it is removed Parsed HTML table wrapping div needs to be scaffold so that it is removed May 7, 2024
@gordonwoodhull
Copy link
Contributor

This also fixes #8797

@cscheid
Copy link
Collaborator

cscheid commented May 7, 2024

Yes, let's backport it.

@cscheid
Copy link
Collaborator

cscheid commented May 8, 2024

Will this also close #6529?

@cderv cderv force-pushed the fix/pptx-table branch from 09419b6 to 0b1af3c Compare May 14, 2024 08:47
Ensure the figure is not wrap in a block that prevents the alignment to work.

This #block was created by the unneeded `Div` that is now a scaffolded one.
@cderv
Copy link
Collaborator Author

cderv commented May 14, 2024

This also fixes #8797

Thanks @gordonwoodhull. I commented at #8797 (comment). I think this is fixed by prerelease already for what is reported. Though I added a test for typst here, because parsed HTML table where also an issue leading to aligned table. It seems center align is our default for Typst in 1.5.

@cderv
Copy link
Collaborator Author

cderv commented May 14, 2024

Will this also close #6529?

@cscheid unfortunately no. I believe #6529 is related to processing of FloatRefTarget in PPTX being limited. I'll comment there and dig more.

cderv added a commit that referenced this pull request May 14, 2024
- Use scaffoled Divs for parsed HTML table so that  it is removed and not converted in output format
- Use make_scaffold as _quarto.ast.scafold_element does not exist in 1.4
- Add a test for powerpoint using XPATH
- Add a test for typst table
  Ensure the figure is not wrap in a block that prevents the alignment to work.
  This #block was created by the unneeded `Div` that is now a scaffolded one.
cderv added a commit that referenced this pull request May 14, 2024
- Use scaffolded Divs for parsed HTML table so that  it is removed and not converted in output format
- Use make_scaffold as _quarto.ast.scafold_element does not exist in 1.4
- Add a test for powerpoint using XPATH
- Add a test for typst table
  Ensure the figure is not wrap in a block that prevents the alignment to work.
  This #block was created by the unneeded `Div` that is now a scaffolded one.
@cderv
Copy link
Collaborator Author

cderv commented May 14, 2024

This was backported in 1.4 for next patch release, and changelog added there. Merging this in main now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HTML tables are no more rendered in PPTX output

4 participants