https://github.com/mr-addict/mdbook-repl
A rust based mdbook preprocessor that allows you to execute code in your mdbook without any server. Python, Typescript, Javascript etc.
https://github.com/mr-addict/mdbook-repl
mdbook mdbook-plugins mdbook-preprocessor pyodide webassembly
Last synced: about 1 month ago
JSON representation
A rust based mdbook preprocessor that allows you to execute code in your mdbook without any server. Python, Typescript, Javascript etc.
- Host: GitHub
- URL: https://github.com/mr-addict/mdbook-repl
- Owner: MR-Addict
- License: mit
- Created: 2024-02-17T06:38:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-18T09:21:08.000Z (7 months ago)
- Last Synced: 2025-04-08T07:35:53.331Z (2 months ago)
- Topics: mdbook, mdbook-plugins, mdbook-preprocessor, pyodide, webassembly
- Language: TypeScript
- Homepage: https://mr-addict.github.io/mdbook-repl/
- Size: 5.72 MB
- Stars: 18
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mdbook REPL
This is a [mdbook](https://rust-lang.github.io/mdBook) real time playground for some programming languages which you can directly execute them in the browser without any server. It's fast and easy to use.
This is mostly inspired by [mdbook rust playground](https://rust-lang.github.io/mdBook/format/mdbook.html#rust-playground), but it's only limited to rust and it's using [https://play.rust-lang.org](https://play.rust-lang.org) as its backend compiler server. So I want to make a playground for other languages based on webassembly.
Below is an example of a python code block that can be executed directly in the browser:
```python
# Python codeblockprint("Hello, world!")
```All the code is **editable** and **runnable**. You can change the code and run it again. The execution is really fast.
> Attention 💥
>
> This playground is still in development and not many languages are supported yet. If you have any ideas or suggestions, please let me know.