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

Allow overriding certain settings in slides #148

Merged
merged 2 commits into from
Sep 29, 2023
Merged

Allow overriding certain settings in slides #148

merged 2 commits into from
Sep 29, 2023

Conversation

jaspervdj
Copy link
Owner

Configuration was typically done in the metadata block of the input file, or in a per-user configuration. These settings are applied to the entire presentation.

We now allow selectively overriding these settings on a per-slide basis, by adding one or more config blocks to those slides. Config blocks are comments that start with config:. They can be placed anywhere in the slide.

# This is a normal slide

Normal slide content

# This slide has a different colour header

<!--config:
theme:
  header: [vividYellow]
-->

Wow, how did that happen?

Configuration was typically done in the metadata block of the input file,
or in a per-user configuration.  These settings are applied to the entire
presentation.

We now allow selectively overriding these settings on a per-slide basis, by
adding one or more config blocks to those slides.  Config blocks are comments
that start with `config:`.  They can be placed anywhere in the slide.

    # This is a normal slide

    Normal slide content

    # This slide has a different colour header

    <!--config:
    theme:
      header: [vividYellow]
    -->

    Wow, how did that happen?
@jaspervdj jaspervdj merged commit 2e7137a into main Sep 29, 2023
3 checks passed
@jaspervdj jaspervdj deleted the slide-config branch September 29, 2023 18:53
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.

1 participant