xidoc is a consistent and powerful text language for creating documents.
It compiles to HTML, LaTeX and Gemtext, allowing you to create a webpage, a professional-looking PDF and a Gemini page from a single source file.
For a more interactive experience, try the online playground.
[def greet; target; Hello from xidoc compiled to [arg target]!]
[p
[if-html [greet HTML]]
[if-latex [greet [LaTeX]]]
[if-gemtext [greet Gemtext]]
We have [code python; print("code")],
[$ m \mathbf A^\mathrm{T} \vec h],
[pikchr 4rem; ellipse "pictures" fit color lime],
[js-eval "ytilibammargorp".split("").reverse().join("")]
and more!
]
Hello from xidoc compiled to HTML!
We have print("code")
,
The logo of xidoc is the letter ξ (xi) rendered in the color #d0c.