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

Support functional engine #42

Merged
merged 3 commits into from
Dec 1, 2018
Merged

Support functional engine #42

merged 3 commits into from
Dec 1, 2018

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Nov 30, 2018

This PR will support the functional engine by passing engine option through JS configuration. It would become to customize Marp or Marpit engine easily by a lot of markdown-it plugins.

For example, you can use ==mark== syntax by markdown-it-mark. It will turn into <mark>mark</mark>.

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

module.exports = {
  engine: opts => new Marp(opts).use(markdownItMark)
}

@yhatt yhatt merged commit 6446406 into master Dec 1, 2018
@yhatt yhatt deleted the engine-by-anonymous-func branch December 1, 2018 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant