Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/euro20179/termml

tml (terminal makrup language) is a markup language that is rendered in terminals with it's own very *very* watered down version of css.
https://github.com/euro20179/termml

Last synced: 7 days ago
JSON representation

tml (terminal makrup language) is a markup language that is rendered in terminals with it's own very *very* watered down version of css.

Awesome Lists containing this project

README

        

# TML

tml is a markup language specifically designed to be displayed in terminals, it is interpreted at runtime with `tml.py` however you can write the output to a file, although it will be missing features.

*WARNING:* currently this program will not work unless you install it

Additional features when interprated at runtime:
* hr (horizontal rules), the length is calculated at runtime, so if written, the line may be too long/short
* title, the center position is calculated at runtime, may be off when written to a file

## Installation

```sh
git clone https://github.com/euro20179/tml
cd tml
make install
```

Uninstall:
```sh
make uninstall
```

or

```sh
pip uninstall tml
```

### Example

a sample tml file
```tml

Hello




some bold text


some italic text
```

### How it works
the interprater uses python's builtin html.parser module to parse html, therefore comments, entities (`<`), and anything else like that should work