Skip to content

Marp Cli Engine (--engine) with the API (node.js) #488

Answered by yhatt
samuele-cozzi asked this question in Q&A
Discussion options

You must be logged in to vote

Marp CLI API supports any CLI arguments including --engine. (In other words, API does never restrict any CLI options)

import { marpCli } from '@marp-team/marp-cli'

// Specify engine by the module name
marpCli(['--engine', '@marp-team/marp-core', './slide.md'])

// Specify engine by the path for the function engine
marpCli(['--engine', 'engine.mjs', './slide.md'])

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@samuele-cozzi
Comment options

@yhatt
Comment options

@ruthkangyr

This comment was marked as off-topic.

Answer selected by yhatt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants