xidoc

xidoc is a consistent markup language that compiles to HTML and LaTeX. It's currently very work-in-progress, but I'm already using it for my school notes and this documentation.

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?

Source Code

xidoc is available on GitHub under the GNU GPL 3 licence.