Skip to content
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

Add layout = auto #9423

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Add layout = auto #9423

wants to merge 1 commit into from

Conversation

cscheid
Copy link
Collaborator

@cscheid cscheid commented Apr 19, 2024

Will close #7832.

  • Requires Pandoc dependency refresh for pandoc.image API.
  • Currently only works on LaTeX because of layout algorithm mismatch between LaTeX and HTML

Usage

layout attribute now supports auto keyword, which we take to mean "layout all cells in a single row and automatically adjust image heights so they're all matched."

Example:

---
title: hello
---

::: {#fig-1 layout=auto} 

![Hanno](./hanno.png)

![Surus](./surus.png)

Elephants

:::

See @fig-1

LaTeX output

image

HTML output

Currently broken:

image

@cscheid cscheid changed the title partial work Add layout = auto Apr 19, 2024
@cscheid cscheid added this to the v1.6 milestone Jun 27, 2024
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.

figure enhancement: auto-match heights
1 participant