remark icon indicating copy to clipboard operation
remark copied to clipboard

Add option to allow setting default slide alignment classes

Open pippinbarr opened this issue 8 years ago • 2 comments

Currently the default alignment for a slide is 'left top', but it would be helpful to be able to specify this in the options to avoid having to set every single slide to a new default (e.g. I'm currently using 'left middle' on every slide).

Would be great to have this as an option in the constructor, e.g.

var slideshow = remark.create({
    defaultSlideAlignment: 'left middle'
});

pippinbarr avatar Aug 24 '17 16:08 pippinbarr

I can suggest a few workarounds:

  • put your body with class middle
  • put some CSS on remark-slide-container

I think it's best if we stay as close to HTML/CSS as we can, so people learn just that, instead of adding options to remark, which forces us to test and maintain, and our users to learn one more thing.

What do you think?

abelards avatar Dec 29 '19 17:12 abelards

Totally fair, and makes a lot of sense to outsource to CSS in general. Guess the only tradeoff is that users who aren't comfortable in CSS might struggle to "see" that solution, but depends really on how fundamental you view certain options versus others, so it's totally legit to offload this way I think!

pippinbarr avatar Dec 31 '19 22:12 pippinbarr