Last active
August 2, 2021 00:06
-
-
Save yhatt/353b7912a9d7c161f46dbd35e39a94b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i @marp-team/marp-cli @marp-team/marp-core markdown-it-admon | |
npx marp --engine engine.js slide.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Marp } = require('@marp-team/marp-core') | |
const markdownItAdmon = require('markdown-it-admon') | |
module.exports = (opts) => new Marp(opts).use(markdownItAdmon) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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