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 551661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:25:03+00:00 2026-05-13T11:25:03+00:00

Sometimes it may be useful to transform markdown to pure text (for sending in

  • 0

Sometimes it may be useful to transform markdown to pure text (for sending in e-mail for instance).

Does any of these libraries support this functionality? (I’m actually more insterested in MarkdownSharp)

EDIT

Responding to Jorn’s comment. I’ll clarify what I expect from this kind of conversion:
Markdown has special characters that, depending on context, only have formatting meaning. The **,=,- characters for instance. It would be nice if I could clear the text from formatting characters.

I’m not sure what would be the best approach and what characters should be eliminated, nor I know what to do with links for instance, but I think someone might have done something in this sense before.

EDIT 2

Found a good example: Stackoverflow uses this kind of markdown clearing in the “Questions” list. I’m quite sure it clears the markdown formatting before rendering the question content brief, otherwise it would contain line breaks, strongs, H1s and so forth.

EDIT 3

I agree to John. The best solution seems to be to convert from markdown to HTML and then strip the resulting HTML.

And this task seems to be already solved: How Can I strip HTML from Text in .NET?

  • 1 1 Answer
  • 1 View
  • 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-13T11:25:04+00:00Added an answer on May 13, 2026 at 11:25 am

    If you just want to retain the original text, then simply don’t pass it to Markdown.

    Markdown is for one thing only: turning Markdown-formatted text into HTML. If you want Markdown to format it in something other than HTML with a different set of transformation rules, then alas, you’ll have to write your own transformer.

    If you want to get the “text-only” version of already-HTML-formatted Markdown, you can just strip the HTML tags. This is what StackOverflow does.

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

Sidebar

Related Questions

Sometimes two image files may be different on a file level, but a human
This may sound strange but sometimes when your ASP.NET webapp isn't working and you
It may sound stupid, but sometimes I run into version conflicts between two versions
Sometimes it's difficult to describe some of the things that us programmers may think
Sometimes IE6 will render the text of a <ul> list the same color as
There is a try-catch thing about functions, which I think sometimes may be quite
Sometimes it is useful to use the starting address of an std::vector and temporarily
Sometimes !important is useful, for example if I have defined common style for all
Sometimes, I felt method overloading may create confusion. class a { public: void copy(float
Sometimes when I'm editing page or control the .designer files stop being updated with

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.