Asia/Kolkata
ProjectsFebruary 12, 2025

Building a Compiler for Markdown

image
MarkLeft is a powerful and flexible tool designed to extend the capabilities of traditional Markdown-to-HTML compilers. It introduces additional syntax and features to enhance the expressiveness and functionality of Markdown documents.
MarkLeft is a work in progress and is currently under development. Please check back for updates and new features. You are still free to use it and contribute to it.
  • Superfast: MarkLeft is designed to be fast and efficient, processing Markdown files quickly and generating HTML output in an instant.
  • Extensible: MarkLeft is highly extensible, allowing users to define custom syntax and features to suit their needs.
  • Customizable: MarkLeft provides a range of options and settings to customize the output, including themes, styles, and more.(coming soon)
  • Ruby >~ 3.2.4
  • Bundler =2.6.3
To install MarkLeft, clone the repository and navigate to the project directory:
gem install markleft
git clone git@github.com:greeenboi/markdown-superset-compiler.git
markleft
The markleft-main.rb file is a simple script that reads a Markdown file, tokenizes it, parses it, and generates HTML output.
  1. Run the Script
    ruby lib/markleft.rb
  2. Follow the prompts to select a Markdown file and process it.
Given a sample Markdown file sample.md:

    This is a sample *Markdown* file
**bold** yippee!

Recent projects

The Eden Project

The Eden Project

Avatar
What if music wasn't so inaccessible..
Run over a Deer

Run over a Deer

Avatar
A Silly little game based on the hit movie Over The Hedge
Just a Walkthrough

Just a Walkthrough

Avatar
Framework-agnostic onboarding walkthrough / product tour library with optional React provider & Tailwind/shadcn support.
Suvan GSgreeenboiGreenArcadeSuvan GSgreeenboiGreenArcadeSuvan GSgreeenboi
Suvan GSgreeenboiGreenArcadeSuvan GSgreeenboiGreenArcadeSuvan GSgreeenboi