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

  • Home
  • SEARCH
  • 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
  • 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-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

Ask A Question

Stats

  • Questions 260k
  • Answers 260k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Well, got something working, just wanted to share. So far… May 13, 2026 at 11:25 am
  • Editorial Team
    Editorial Team added an answer Even though OS normally implement page tables, the simpler solution… May 13, 2026 at 11:25 am
  • Editorial Team
    Editorial Team added an answer It's impossible to track object's state within javascript language as… May 13, 2026 at 11:25 am

Related Questions

Most people talk about progressive enhancement right now as serving browsers with javascript (enhanced
Been having a heated debate with a colleague about his practice of wrapping most
I've been frustrated with a lot of my time I've spent researching asp.net-mvc. It
Here's the situation: I've got two versions of a novel, both in txt format.
There is a try-catch thing about functions, which I think sometimes may be quite

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.