yhatt / marp-cli-example

The good starter for using Marp via Marp CLI, by the author of Marp
https://yhatt.github.io/marp-cli-example
Do What The F*ck You Want To Public License
181 stars 158 forks source link

Split the slide into two parts #10

Closed imflash217 closed 5 years ago

imflash217 commented 5 years ago

Hi @yhatt , As referenced here (https://marpit.marp.app/usage?id=extend-marpit-by-plugins) I should be able to split the slides. Is this possible to do it in marp-cli for web while hosting on NOW?

Thanks

yhatt commented 5 years ago

Add engine property to marp.config.js.

// marp.config.js
const { Marp } = require('@marp-team/marp-core')
const container = require('markdown-it-container')

module.exports = {
  // Customize engine on configuration file directly
  engine: opts => new Marp(opts).use(container, 'custom'),
}

Please see the document at Marp CLI repository: https://github.com/marp-team/marp-cli#configuration-file