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

Setting defaultTemplate breaks slide formatting #299

Open
jtuttle opened this issue Apr 10, 2024 · 0 comments
Open

Setting defaultTemplate breaks slide formatting #299

jtuttle opened this issue Apr 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jtuttle
Copy link

jtuttle commented Apr 10, 2024

Describe the bug
When trying to use a template through the defaultTemplate frontmatter, it completely breaks slide formatting. The slides all get squished together and other artifacts occur (see the empty bullets in the second screenshot below). It's like the template is being applied to all of the slides lumped together instead of to each individual slide.

The templating appears to work fine when setting individual slides using <!-- slide template="[[simple-template]]" -->, which I believe rules out the template as the culprit.

Slides with individual templates defined (works):

Screenshot 2024-04-10 at 4 10 15 PM

Slides after setting defaultTemplate (does not work):

Screenshot 2024-04-10 at 4 12 16 PM

Samples to Reproduce
Steps & Examples to reproduce the behavior:

presentation.md

---
margin: 0
defaultTemplate: "[[simple-template]]"
---
---
## Slide One

---
## Slide Two

simple-template

<% content %>

footer content

Expected behavior
The template should be applied to all slides without slide formatting breaking.

@jtuttle jtuttle added the bug Something isn't working label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant