jaspervdj / patat

Terminal-based presentations using Pandoc
GNU General Public License v2.0
2.42k stars 60 forks source link

Allow overriding certain settings in slides #148

Closed jaspervdj closed 1 year ago

jaspervdj commented 1 year ago

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?