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

headingDivider as local directive #275

Open
Chaphasilor opened this issue Jan 13, 2021 · 1 comment
Open

headingDivider as local directive #275

Chaphasilor opened this issue Jan 13, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@Chaphasilor
Copy link

Right now, headingDivider is a global directive, and can't be used locally.
This is mostly because the headingDivider setting changes how the slides are split, which in turn changes which local directives are applied to which slides.

However, it might be desirable to use the headingDivider directive for most slides, but not all of them.
For example:

If you use headings to structure your presentation, the headingDivider directive is almost perfect, but it prevents you from using multiple headings (e.g. subheadings) on your first slide.

If you look at other presentations out there, almost all use a subheading on the first slide (and maybe the last slide), but only a single heading on all other slides.

A local headingDivider directive, applied after the first slide (and maybe overwritten on the last slide) would fix this issue and make creating a standard presentation in markdown a breeze!

@yhatt
Copy link
Member

yhatt commented Jan 14, 2021

Related: marp-team/marp#64

@yhatt yhatt added the enhancement New feature or request label Jan 14, 2021
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
Status: Todo
Development

No branches or pull requests

2 participants