mdx-show

0.9.3 • Public • Published

Write with MDX, slides show with browser

Installation

CLI: yarn add --dev mdx-show

Usage

CLI

Serve online:

$ yarn mdx-show // serve your working folder
$ yarn mdx-show -d your_mdx_folder // serve special folder
$ yarn mdx-show -h // display help info
visit http://localhost:3000

Export to PDF

$ yarn mdx-show && yarn mdx-show-pdf // export all MD/MDX files to PDFs

Serve without server:

cp ./node_modules/mdx-show/dist/mdx-show.html ~/working_dir
open mdx-show.html    // Note: local subtitles can't be loaded without server

Programmatically:

import {mdxShow} from 'mdx-show'

mdxShow({options})
import pdfs from 'mdx-show/pdfs'

pdfs({options})

License

MIT

Copyright (c) 2021-present, Dai Lei szdailei@gmail.com

Readme

Keywords

Package Sidebar

Install

npm i mdx-show

Weekly Downloads

1

Version

0.9.3

License

MIT

Unpacked Size

12.2 MB

Total Files

16

Last publish

Collaborators

  • szdailei