Skip to content

Markua spec, with in-progress reference implementations in C and JavaScript

License

Notifications You must be signed in to change notification settings

markuadoc/markua-spec

 
 

Repository files navigation

About This Document

This formal specification of Markua was developed at Leanpub, is written by Peter Armstrong, is based on the CommonMark Spec by John MacFarlane, and is licensed under the Creative Commons license CC-BY-SA 4.0.

This spec currently has a beta implementation on Leanpub, and is subject to change.

If you are a Leanpub author, only read this if you have opted into the Markua 0.30 Beta.

If you have not opted into the Markua 0.30 Beta, then you should be reading the Markua Manual, not this document!

The Markua Manual documents the version of Markua 0.10 which is used on Leanpub.


This is the Markua Spec, written by Peter Armstrong.

The Markua Spec is based on the CommonMark Spec, whose author is John MacFarlane.

This document also incorporates the specification of three of the five GitHub Flavored Markdown (GFM) extensions from the GFM Spec.

Like the CommonMark Spec and the GFM Spec, the Markua Spec is licensed under the Creative Commons license CC-BY-SA 4.0.

This document has two types of intended readers:

  1. authors with advanced questions about Markua syntax
  2. developers implementing Markua Processors

The Introduction contains a number of introductory sections about Markua and its relationship to Markdown, CommonMark and GFM. It also contains sections which discuss Leanpub, to minimize confusion for Leanpub authors who encounter this document.

If you're going to read this document, you really should read the Introduction, even if you normally skip them.

Branches

Markua is being specified on the master branch. Leanpub Flavoured Markdown (LFM) is being specified on the lfm branch.

Building the Spec

To build before deploying to markua.com, run ./build.sh.

To build the spec you will need docker installed. You can check with docker -v if you dont have docker you can download it from https://www.docker.com/products/docker-desktop

You will need the repository cloned, and then using the terminal navigate into the root of the repository on the master branch. Once there you can run ./spec.sh, this will create a docker container, generate the spec.html file in $HOME/Desktop by default, and then stop and remove the docker container. You can add a -o [filepath] flag to specify an output file path. The script will expect that spec.txt which it uses to build spec.html will be in the root, where it is by default.

About

Markua spec, with in-progress reference implementations in C and JavaScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 96.8%
  • Python 1.6%
  • Lua 1.2%
  • JavaScript 0.2%
  • Shell 0.1%
  • Makefile 0.1%