xidoc

xidoc is a consistent and powerful markup language that compiles to HTML, LaTeX and Gemtext.

A Quick Look

For a more interactive experience, you can try the online playground.

xidoc code

[section HTML;
  [p
    HTML is such an [it ugly] language!
    Each [code html; <tag>] has to be repeated twice.
  ]
]
[section [LaTeX];
  [p
    [LaTeX] is great for writing math formulas like [$ e^{\tau i} = 1],
    but it's painful to write with all those [code latex; \begin], [code latex; \end]
    and different syntaxes for different things.
  ]
]

Output

HTML

HTML is such an ugly language! Each <tag> has to be repeated twice.

LaTeX

LaTeX is great for writing math formulas like eτi=1e^{\tau i} = 1, but it's painful to write with all those \begin, \end and different syntaxes for different things.

What can I do with xidoc?

What can I not do with xidoc?

Logo

The logo of xidoc is the letter ξ (xi) rendered in the color #d0c.

Source Code

xidoc is available on SourceHut and GitHub under the GNU General Public Licence 3. (SourceHut is strongly preferred because it is important for free software to use free software infrastructure.)