Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 208485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:49:47+00:00 2026-05-11T17:49:47+00:00

What is the best implementation of Markdown for C or C++? I found these

  • 0

What is the best implementation of Markdown for C or C++?

I found these via Google, and would appreciate comments about which ones work well and which ones don’t (and which ones I may have missed):

  • peg-markdown
  • Discount
  • Cpp-Markdown
  • libsoldout (formerly libupskirt)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:49:47+00:00Added an answer on May 11, 2026 at 5:49 pm
    1. peg-markdown depends on GLib and other 3rd part tools. I’ve tested it, it works quite well.

      Advantages:

      • Dual-licensed under GPL and MIT.
      • Uses internally formal grammar, so easy to maintain and extend.

      Disadvantages:

      • Depends on GLib
      • Provides C API.
    2. Cpp-Markdown, Most C++ code but it is quite slow and little bit bloated. On the other hand it is quite easy to understand and modify, Depends on boost-1.35.

      Advantages

      • Depends only on boost
      • Written in C++, looks like less dangerous
      • Licensed under MIT.

      Disadvantages

      • Slow (it is still about 10 times faster then Perl implementation, but about 10 times slower than Discount)
    3. Discount, This is the code I use for my blog http://art-blog.no-ip.info/cppcms/blog and wiki http://art-blog.no-ip.info/wikipp/en/page/main. It is written by hardcore C programmer and quite hardly mantainable (even the developer activly maintains it).

      Advantages

      • Extremely fast
      • Written in pure C (no 3rd part dependencies).
      • Actively maintained
      • Has permissive 3 clause BSD license

      Disadvantages

      • Almost impossible to maintain (even I could remove/add some fatures).
      • Has only FILE API, so I should tweak the code to make it work with general buffer.
      • Licensed under 4 clause BSD license that is incompatible with GPL. It is problematic if you want to use it not as part of your GPL-ed software.

    Why do I know them so much?

    I’m developing CppCMS, so I need a good markdown to HTML convertor. When I picked one (Discount), it was the only solution. Since then I’ve needed to replace it due to licensing issues. That said, I still quite like it because it is the fastest Markdown solution.

    P.S.: If you want C++ wrapper for Discount, take a look on http://cppcms.svn.sourceforge.net/viewvc/cppcms/cms/trunk/cxxmarkdown/, It is not the latest version, but it is already tweaked.

    EDIT: I have just visited Discount site and I had found that it had added a non-FILE API as well. So now it is real library.

    EDIT 2: If you find better implementation or write your own under FOSS license, let me know 😉

    EDIT 3: as cloose commented, discount had changed the license to 3 clause BSD.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Building on what has been written in SO question Best Singleton Implementation In Java
For an ASP.NET application, what is the Best Practice implementation method for a custom
As best-behaved as I try to be about keeping my unit tests disconnected from
What's the best implementation for more than one background service in an ASP.NET application?
What is the best practice (interface and implementation) for a command line tool that
I'm looking for a fuzzy search implementation that works well with western European languages.
I would like to have some exemple of implementation of jXSearchPanel with jTable. I
The default generated hashCode and equals implementations are ugly at best. Is it possible
Best recommendations for accessing and manipulation of sqlite databases from JavaScript.
How best to make the selected date of an ASP.NET Calendar control available to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.