vesta
Version, currently 0.2.24 versions
- 0.2.2latestApr 3, 2021
- 0.2.1not indexedApr 3, 2021
- 0.2.0not indexedApr 3, 2021
- 0.1.0not indexedApr 3, 2021
github.com/ruivieira/crystal-vesta
Crystal executable Markdown
6 stars
0 dependents
License: AGPL3
Installation
# Add this to your shard.yml
dependencies:
vesta:
github: ruivieira/crystal-vesta
version: ~> 0.2.2Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- AGPL3
- Author
- Rui Vieira <ruidevieira@googlemail.com>
Dependencies
Runtime Dependencies
README
[](https://github.com/ruivieira/crystal-vesta/actions/workflows/main.yml) [](https://builds.sr.ht/~ruivieira/crystal-vesta/commits/.build.yml?)
# crystal-vesta

Crystal executable Markdown.
## installation
Add the dependency to your `shard.yml`:
```yaml
dependencies:
holst:
github: ruivieira/crystal-vesta
```
and run `shards install`.
### command line
To install the CLI, clone this repository and run
```shell
crystal build vestacli.cr
```
The basic usage to render a markdown file `foo.md` is
```shell
vestacli -i foo.md -o bar.md
```
## examples
Given a Markdown file with `crystal` code block, _e.g._
# Title
This is a test, and with
a code block (`Crystal`)
```crystal
a = [1, 2, 3]
b = a.map{ |x| x*2 }
b
```
Let's try with another one
```crystal
c = 4
c
```
And ... the end.
`vesta` will execute the code block and add the result after the block:
```crystal
require "vesta"
vesta = Vesta::Renderer.new("test_file.md")
result = vesta.render
```
will result in:
# Title
This is a test, and with a code block (`Crystal`)
``` crystal
a = [1, 2, 3]
b = a.map{ |x| x*2 }
b
```
[2, 4, 6]
Let's try with another one
``` crystal
c = 4
c
```
```
4
```
And ... the end.
## documentation
API documentation is available [here](https://ruivieira.github.io/crystal-vesta/).
A git mirror is available at [https://git.sr.ht/~ruivieira/crystal-vesta](https://git.sr.ht/~ruivieira/crystal-vesta).
## mailing lists
- Announcements: [https://lists.sr.ht/~ruivieira/crystal-announce](https://lists.sr.ht/~ruivieira/crystal-announce)
- Discussion: [https://lists.sr.ht/~ruivieira/crystal-discuss](https://lists.sr.ht/~ruivieira/crystal-discuss)
- Development: [https://lists.sr.ht/~ruivieira/crystal-devel](https://lists.sr.ht/~ruivieira/crystal-devel)
Please prefix the subject with `[crystal-vesta]`.
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.2.2- Tagged
- Apr 3, 2021
- Commit
34efd8866668- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/ruivieira/crystal-vesta
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 4