Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ubavic/mint
MINT is not TeX
https://github.com/ubavic/mint
documents latex markup-converter markup-language
Last synced: 17 days ago
JSON representation
MINT is not TeX
- Host: GitHub
- URL: https://github.com/ubavic/mint
- Owner: ubavic
- License: mit
- Created: 2024-07-03T21:28:50.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-08-24T20:06:37.000Z (6 months ago)
- Last Synced: 2025-01-19T23:42:28.212Z (18 days ago)
- Topics: documents, latex, markup-converter, markup-language
- Language: Go
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mint
Mint is a document (meta)language and preprocessor designed to be simple and flexible.
Like in LaTeX, grouping of text in Mint is done using braces. However, unlike TeX, the special character in Mint is not `\` but `@`. Therefore, every command starts with `@` (e.g., `@title`, `@bold`...).
Mint doesn’t have any predefined commands (the escape sequences `@@`, `@{`, and `@}` only resemble commands). Even basic document commands like those for paragraphs, titles, or text decorations are not predefined. All commands must be defined by the user in a YAML schema file.
## Usage
You have to provide path to `.atex` file and `.yaml` schema:
```
mint -in "file.atex" -schema "schema.yaml" [-target TargetName]
```See `./example`
## TODO
Mint is still in the early development phase. Below is a list of features that may be developed in the future:
+ Command IDs
+ Command parameters
+ Intuitive handling of multiple files
+ Begin/end commands
+ Implicit command arguments
+ Parameter typing
+ Parameter description
+ More optimized tokenizer/parser/writer
+ Schema validation
+ JSON input/output
+ Stable API
+ Allow schema written in atex
+ WASM filters
+ Language server and extensions for editors## License
The code is released under the [MIT license](LICENSE).