An open API service indexing awesome lists of open source software.

https://github.com/rmariuzzo/markdown-exec

Execute commands in your Markdown and keep the output.
https://github.com/rmariuzzo/markdown-exec

cli exec markdown markdown-parser

Last synced: 8 months ago
JSON representation

Execute commands in your Markdown and keep the output.

Awesome Lists containing this project

README

          

![Markdown Exec - Execute commands in your Markdown and keep the output.](.github/banner.svg)

# Installation

```shell
yarn add markdown-exec --global
```

or

```shell
npm install markdown-exec --global
```




# Usage

The `markdown-exec` command takes one single argument: a file containing [XML Comment API](https://github.com/rmariuzzo/xml-comment-api)'s annotations.

```shell
markdown-exec ./README.md
```

The command will process the content of the given file and will search for XML comments that has the following format:

```xml

```

## Specify command to execute

**Before:**

```xml

```

**After:**

```xml
123
```

## Use a regular expression to reduce the command output

**Before:**

```xml

```

**After:**

```xml
123
```

## Tests

- `yarn test` - run all tests once.
- `yarn test -- --watch` - run all tests and watch for changes.

## Development

To start contributing to this project, please do:

1. [Fork and clone this repo](https://github.com/rmariuzzo/markdown-exec/fork).
2. Do your work.
3. Create a PR.

## Releases

To release this project the following tasks should be done:

1. Using [np](https://github.com/sindresorhus/np): `np`




Made with :heart: by [Rubens Mariuzzo](https://github.com/rmariuzzo).

[MIT License](LICENSE)