Skip to content
MDX deck layout for runnable code
JavaScript
Branch: master
Clone or download
dependabot and pranaygp Bump lodash from 4.17.11 to 4.17.15
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.15.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.11...4.17.15)

Signed-off-by: dependabot[bot] <support@github.com>
Latest commit bd265c8 Aug 28, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.babelrc setup build step correctly Nov 14, 2018
.gitignore
.npmignore
README.md
index.js
package.json
rollup.config.js
yarn.lock

README.md

mdx-code

A MDX Deck Layout that renders code blocks on a slide as a Runnable RunKit playground. Only for JavaScript (Node)

Install

yarn add --exact mdx-code

Use

import Code from 'mdx-code';

# Regular Slide

---
export default Code

```javascript A playground slide!
console.log('Hello world');
```

1

Preambles

A slide can have two code blocks. The first code block is run before the second, but the playground only displays the second.

export default Code

```
const x = [1, 2, 3];
```
```javascript x is already defined
x.map(i => i*2);
```

2

Authors

You can’t perform that action at this time.