PROJET AUTOBLOG


BohwaZ

Site original : BohwaZ

⇐ retour index

SkrivLite, a lightweight implementation of SkrivML

vendredi 23 mai 2014 à 15:17

SkrivML is a markup language inspired by other ASCII markup languages like MediaWiki, Creole, MarkDown, reST, txt2tags, AsciiDoc et d'autres. I think it is the most intuitive markup, and it is powerful and easy to use. It's much better than the terrible Markdown for writing. The only problem I had was its implementation which was quite bloated with more than 350 KB of code and more than 60 files.

That's not exactly how I like programming. I like it small, easy to read and maintain, with very few dependencies. So I began to work on my own implementation of this markup.

So here is SkrivLite: a lightweight PHP library. Only one file and 25KB of code, without any other dependency whatsoever. It is two to three times faster and takes up to three times less memory. It is fully compatible with the Skriv Markup Language, except for the symbols and smileys.

SkrivLite also adds some features like:

SkrivLite is available under a 2-clause BSD license: download the source code.