Skip to content

Instantly share code, notes, and snippets.

@yhatt
Last active August 2, 2021 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yhatt/353b7912a9d7c161f46dbd35e39a94b5 to your computer and use it in GitHub Desktop.
Save yhatt/353b7912a9d7c161f46dbd35e39a94b5 to your computer and use it in GitHub Desktop.
npm i @marp-team/marp-cli @marp-team/marp-core markdown-it-admon
npx marp --engine engine.js slide.md
const { Marp } = require('@marp-team/marp-core')
const markdownItAdmon = require('markdown-it-admon')
module.exports = (opts) => new Marp(opts).use(markdownItAdmon)
---
style: |
@import url('https://unpkg.com/markdown-it-admon/styles/admonition.css');
---
# Marp + admonition
!!! warning
this is an _example_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment