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

I am trying to determine which implementation of the data structure would be best
Which is the best implementation(in terms of speed and memory usage) for iterating through
I was wondering what the best implementation would be to programatically generate a single
What's the best implementation for more than one background service in an ASP.NET application?
Possible Duplicate: Best radio-button implementation for IOS I am looking at my storyboard and
In our COM project, we need to choose between best string class implementation so
What is the best way to test an implementation of a mutex is indeed
Each of my Activities needs a correspoding singleton View implementation. What's the best strategy
Best way to match 2 pages for Google analytics. Pages to Query: 1.) this_google.html
Best would be if it performs the highlighting exactly as it is in Visual

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.