diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2689b93..ae1334c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ cwd: ./ runme: id: 01HF7GMQ6PE0NNKN60P50JEZ17 - version: v2.0 + version: v2.2 --- # Contributing diff --git a/README.md b/README.md index 0db2dce..91d68b1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +--- +runme: + id: 01HP7J575TFZ65WYPQPZGE7STA + version: v2.2 +--- + # Runme.js [![Test Changes](https://github.com/stateful/runmejs/actions/workflows/test.yaml/badge.svg)](https://github.com/stateful/runmejs/actions/workflows/test.yaml) [![npm version](https://badge.fury.io/js/runme.svg)](https://badge.fury.io/js/runme) [![Join us on Discord](https://img.shields.io/discord/878764303052865537?color=5b39df&label=Join%20us%20on%20Discord)](https://discord.com/invite/BQm8zRCBUY) > A JavaScript module to use [Runme](https://runme.dev) in Node.js. @@ -38,7 +44,7 @@ The module exposes the following methods: Run code cells from markdown files: -```ts { name="runExample" } +```ts {"name":"runExample"} import { run } from 'runme' const result = await run('helloWorld') diff --git a/examples/example.md b/examples/example.md index 1c2b6c6..051474e 100644 --- a/examples/example.md +++ b/examples/example.md @@ -1,17 +1,23 @@ +--- +runme: + id: 01HP7J575TFZ65WYPQQ9E9E0G9 + version: v2.2 +--- + # Example Markdown -```sh { name=helloWorld } +```sh {"name":"helloWorld"} echo "Hello World" ``` -```sh { name=fail } +```sh {"name":"fail"} exit 1 ``` -```sh { name=export promptEnv=false } +```sh {"name":"export","promptEnv":"false"} export FOO="bar" ``` -```sh { name=print } +```sh {"name":"print"} echo "exported FOO=$FOO" ```