Skip to content

tg-prplx/MarkdownTerminalRender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

🚀 MDTRender - Markdown for the Terminal

MDTRender is a lightweight and fast Markdown parser that lets you render text
in ANSI-compatible terminals with beautiful formatting.

📌 Features

  • 🔹 Text styling:
    • Bold, italic, underline, strikethrough
    • inline code highlighting
  • 🔹 Formatting:
    • Headings #, ##, ###
    • Lists: -, * (bulleted), 1., 2. (numbered)
    • Quotes with automatic alignment

  • 🔹 Code blocks:
    • sh and c with automatic line alignment
    • Framed for better readability
  • 🔹 Full ANSI color support for the best terminal display

🔥 Demo

#include "mdrender.h"
int main() {
    const char _md = "# Hello, MDRender!\n\n_*It works!**";
    printf("%s\n", get_terminal_markdown_string(md));
    return 0;
}

⚡ Installation

git clone https://github.com/username/mdrender.git
cd mdrender
cmake -S . -B build
cmake --build build
sudo cmake --install build

📜 License

This project is distributed under the MIT license. Use it freely! 🖖

About

Library for basic markdown rendering in terminal.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors