Skip to content

enzet/Moire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moire

Moire (pronounced as /mwɑː/) is a simple extendable multipurpose markup language.

Writing on Moire

Default formatter

Headers

There are 6 possible header levels: \1, \2, ..., \6 with syntax \<header level> {<header name>} {<header label>}. E.g.: \2 {Section 3} {section-3}.

Formatting

Italic (\i), bold (\b), underlined (\u), monospaced (\m), strikethrough (\strike), subscript (\sub), superscript (\super).

Example Moire code Rendering
\i {text} text
\b {text} text
\m {text} text
\strike {text} text
\sub {text} text
\super {text} text

Links

Example Moire code Rendering
\ref {http://example.com} {external link} external link
\ref {#example-section} {internal link} internal link

Lists

Example Moire code:

\list
    {Item 1,}
    {item 2.}

Rendering:

  • Item 1,
  • item 2.

Tables

Example Moire code:

\table
    {{Header 1} {Header 2}}
    {{Cell 1, 1} {Cell 1, 2}}
    {{Cell 2, 1} {Cell 2, 2}}

Rendering:

Header 1 Header 2
Cell 1, 1 Cell 1, 2
Cell 2, 1 Cell 2, 2

Installation

Requirements: Python 3.9.

pip install .

Conversion Moire code into other formats

Convert Moire file to other formats:

moire -i <Moire input file> -f <format> -o <output file> <other options>

E.g., this file is generated from Moire code using this command:

moire -i doc/readme.moi -o README.md -f DefaultMarkdown

Example section