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

https://github.com/mordragt/type-down

Simple Markup language, easily embeddable and extendable.
https://github.com/mordragt/type-down

markdown markup typst

Last synced: 2 months ago
JSON representation

Simple Markup language, easily embeddable and extendable.

Awesome Lists containing this project

README

          

# TypeDown ✒️

[![NixOS][nixos-badge]][nixos-url]
[![Docs][docs.rs-badge]][docs.rs-url]
[![Website][website-badge]][website-url]
![License][license]

[website-badge]: https://img.shields.io/website?url=https%3A%2F%2Fmordragt.github.io%2Ftype-down&style=for-the-badge
[website-url]: https://mordragt.github.io/type-down
[docs.rs-badge]: https://img.shields.io/badge/docs.rs-typedown-4d76ae?style=for-the-badge
[docs.rs-url]: https://mordragt.github.io/type-down/type_down
[nixos-badge]: https://img.shields.io/badge/Flakes-Nix-informational.svg?logo=nixos&style=for-the-badge
[nixos-url]: https://nixos.org
[license]: https://img.shields.io/github/license/mordragt/type-down?style=for-the-badge

Simple Markup language, easily embeddable and extendable.

## About

TypeDown is a simple markup language wich takes inspiration from [Typst](https://typst.app/)
but focuses on being embeddable into your own projects.
Therefore it is better compared to Markdown.
If you would like to take a look on how TypeDown looks at the moment, see the `ok.typ` file under the `examples` folder.
While the syntax is still subject to change TypeDown will look similar on release.

## Installation

TypeDown is currently still in development and thus isn't packaged.
But in the future it will be packaged with Nix.
In the meantime you can use cargo to install TypeDown by cloning
this repository and running `cargo install --path .`.
Note that while there exists an experimental self-contained html backend,
by default pandoc is required.

## Usage

- `tyd check `: checks the provided document and returns the generated ast.
- `tyd format `: formats the provided document by printing to stdout.
- `tyd compile [destination]`: Compiles the document to one of the provided formats and if a destination is provided saves the corresponding file there. Note that for pdf and docx you must provide a destination.

## Reference

1. [Typst](https://typst.app/)