Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.
/ llml Public archive

A terrible LaTeX-like markup language

License

Notifications You must be signed in to change notification settings

jonpalmisc/llml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLML: LaTeX-Like Markup Language

LLML is a markup language & templating engine with a LaTeX-like syntax that transpiles to HTML. It is written in (not very good) Rust and is currently in very early development. Everything about this project is unstable and should not be used in any serious context.

Example

The following is a basic example of LLML:

\defmacro!{section}{2}{
  \h1.section-title{\arg!{1}}
  \p.section-par{\arg!{2}}
}

\section!{Welcome To LLML!}{This is a basic example showing the syntax of LLML's features.}

As you can see, it looks like LaTeX but with HTML elements. It’s a nightmare, I know. When transpiled, the sample above turns into the following:

<html>
  <h1 class="section-title">Welcome To LLML!</h1>
  <p class="section-par">
    This is a basic example showing the syntax of LLML's features.
  </p>
</html>

Installation

LLML must be built from source at this time.

Usage

The most basic LLML usage is as follows:

llml example.llml

This will transpile example.llml and write the output to example.html. Run LLML with no arguments or the --help flag for info on additional options.

FAQ

Please see some frequently asked questions (and their answers) below.

Why would you create this?

It seemed like a good idea at the time. I’m sorry.

License

Copyright 2021 Jon Palmisciano

LLML’s source code is available under the BSD-3-Clause License. For more information and the full license text, see the LICENSE.txt file.

About

A terrible LaTeX-like markup language

Topics

Resources

License

Stars

Watchers

Forks

Languages