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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:39:12+00:00 2026-06-18T04:39:12+00:00

I am using Markdownsharp v1.13. The following statement: new Markdown().Transform(<section id=\archives\>\r\n <p>\r\n No archives.\r\n

  • 0

I am using Markdownsharp v1.13.

The following statement:

new Markdown().Transform("<section id=\"archives\">\r\n        <p>\r\n            No archives.\r\n        </p>\r\n</section>")

Is wrapping the result into a p element:

> "<p><section id=\"archives\">\n        <p>\n            No archives.\n
> </p>\n</section></p>\n"

Why on earth is it doing that? I thought it should completely ignore, the html tags?

Thanks for your help.

  • 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-06-18T04:39:13+00:00Added an answer on June 18, 2026 at 4:39 am

    The list of block-level elements that prevent Markdown expansions inside them is hardcoded; see line 590 and following.

    This list does not include <section> elements by default (when Markdown was created, HTML5 was distant future), but as you can see, you can easily add other HTML tags to that list.

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

Sidebar

Related Questions

I'm using markdown editor with Pagedown and MarkdownSharp. There is an option AutoNewlines in
Using MongoDB C# Driver (official form 10gen), I'm doing the following code: using (database.RequestStart())
I'm using markdownsharp with my asp.net forms website. I want to use MarkItUp as
I am using MarkdownSharp in an mvc3 project. The user is able to insert
Using this code, the following execution yields strange results: C 100 R W The
using this code: Java Server side: ... out = new PrintWriter(this.client.getOutputStream(), true); ... public
Using the DateTime class, if I try to run the following code: $mydate =
I'm using pagedown editor. The code I'm using for gerating the preview is following:
Is there a way to get MarkdownSharp (I'm using the NuGet package ) to
I am using MarkdownSharp in one of my projects and have noticed that if

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.