Skip to content

div syntax for content that is included for only certain formats #646

Closed

Activity

  1. cscheid commented on Apr 15, 2022

    @cscheid
    Member

    Yup. Once we have the "xml component syntax", this is pretty straightforward for me to implement. We'll get it together with the include functionality.

  2. self-assigned this
    on Apr 15, 2022
  3. cderv commented on Apr 20, 2022

    @cderv
    Member

    For reference, some discussion about this kind of feature in #373 I believe

  4. cscheid commented on May 2, 2022

    @cscheid
    Member

    This is now supported with .content-hidden, .content-visible, when-format and unless-format. Examples:

    ::: {.content-hidden when-format="pdf"}
    This will not appear in a PDF
    :::
    
    ::: {.content-visible unless-format="docx"}
    This will not appear in word output
    :::
    
    ::: {.content-hidden unless-format="html"}
    This will only be visible in HTML output
    :::
    
  5. cderv commented on May 3, 2022

    @cderv
    Member

    Awesome ! Thanks!

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions