Crates.io | coen |
lib.rs | coen |
version | 0.1.2-alpha |
source | src |
created_at | 2023-02-10 05:34:06.977348 |
updated_at | 2023-03-06 06:49:19.648591 |
description | A RegEx-based pseudo-programmable markdown written in Rust that acts as an abstraction layer for any other language. |
homepage | https://github.com/coenproject |
repository | https://github.com/coenproject/coen |
max_upload_size | |
id | 781657 |
size | 21,607 |
A RegEx-based transpiler for markdown-like languages.
Coen is available in crates.io and can be installed using Cargo
:
cargo install coen
Use a template to create documents (for example, clone this one for LaTeX) and add/modify your contents in the *.coen
files.
You can set variables using the set
command:
!set variable value
You can add definitions using the def
command. Groups are captured with (?P<group_name>.+)
and can be replaced using $group_name
.
!def blue\s(?P<name>.+) gray $name
This one, for example, changes every instance of blue *
into gray *
.
Pass the path to the root file and supply an optional target location:
coen root.coen --target tgt/target.tex
You can also set the target location within the coen file with:
!set TARGET tgt/target.tex
Passing the target parameter in the command line will override this value.