The idea of a miniature markdown version is far from new, but I needed one for a project of mine. So I decided to publish my implementation as a standalone library. Naturally, the current version doesn't cover 100% of the functionality, but it handles the basics perfectly. Since the main task was to convert text into HTML markup and display it, only the core components that will be used made it in, namely: headings, paragraphs, text formatting (bold, italic, slanted, underline, strikethrough, superscript and subscript), code and text lists.
You can try it all out at this link:
https://github.com/sibvrv/worfdown
The index.spec.ts file contains the simplest unit tests; from them you can see which functionality is supported.
Why worfdown?
It's simple: Worf is a Starfleet officer, a character from the “Star Trek” universe — if you've watched it, you'll get it.
Worfdown: A Tiny Markdown Implementation
The idea of a miniature markdown version is far from new, but I needed one for a project of mine. So I decided to publish my implementation as a standalone library. Naturally, the current version doesn't cover 100% of the functionality, but it handles the basics perfectly. Since the main task was to convert text into HTML markup and display it, only the core components that will be used made it in