Skip to content

Steps for adding a new custom markdown syntax #206

Answered by yhatt
mil-ad asked this question in Q&A
Discussion options

You must be logged in to vote

Of course. Marp has been maximized compatibility with markdown-it plugin ecosystem, so a way to extend Markdown syntax is exactly same as markdown-it. In the most cases, any Marp knowledgements are not required to make a plugin for extending syntax.

Useful resources:

The following snippets are how to test your plugin in Marp CLI (with customized engine):

// engine.js
// https://github.com/marp-team/marp-cli#functional-engine

const yourMarkdownItPlugin = (md) => {
  // Write markdown-it plugin for extending Markdown syntax as you like
}

module.exports = ({ marp }) => marp.use(yourMarkdownI…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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
2 participants