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 a feature for including content only in specific export types #1833

Open
fwkoch opened this issue Feb 3, 2025 · 1 comment
Open

Add a feature for including content only in specific export types #1833

fwkoch opened this issue Feb 3, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@fwkoch
Copy link
Collaborator

fwkoch commented Feb 3, 2025

Building multiple export types from the same source would be improved if there was an option to include some content in only one export type. For example, if I want a video for a web build and an image for a pdf build, I could do something like:

:::{only:web}
![](./my-video.mp4)
:::

:::{only:pdf}
![](./my-image.jpg)
:::

One example of where this could be used is #1744


Regarding implementation, this could be a directive, like my example above, or it could be an option on existing directives. It could also come in as a class, following this proposal: jupyter-book/myst-enhancement-proposals#28

@fwkoch fwkoch added the enhancement New feature or request label Feb 3, 2025
@agoose77
Copy link
Contributor

agoose77 commented Feb 4, 2025

Related: #1759

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants