Questions tagged [markdownsharp]

MarkdownSharp is an open source C# implementation of a Markdown processor.

MarkdownSharp is an open source C# implementation of processor, as featured on Stack Overflow.

This port is based heavily on the original 1.0.1 and Perl 1.0.2b8 implementations of Markdown, with bits and pieces of the apparently much better maintained Markdown folded into it. There are a few Stack Overflow specific modifications (which are all configurable, and all off by default). I'd like to ensure that this version stays within shouting distance of the Markdown "specification", such as it is...

(Source: code.Google.com/markdownsharp)

You'll need to know:


Blogs, Links and Q&A

26 questions
35
votes
3 answers

MarkdownSharp & GitHub syntax for C# code

Is there a way to get MarkdownSharp (I'm using the NuGet package) to handle 'GitHub flavored Markdown (GFM)' and especially syntax highlighting of c# code, which (in GFM) is written like this: ```c# //my code..... ``` So, if I pass Markdown…
Daniel
  • 8,133
  • 5
  • 36
  • 51
12
votes
2 answers

Convert rich MarkDown to plain text

How to convert rich Markdown into just plain text? So it can be used i.e. for a Facebook OpenGraph description. I'm using MarkdownSharp, and it doesn't seem to have this functionality. Before I'm going to reinvent the wheel I thought of asking here…
Dirk Boer
  • 8,522
  • 13
  • 63
  • 111
11
votes
1 answer

What is the purpose of MarkDownSharp when used with PageDown?

The StackExchange sites uses MarkDown syntax for writing questions and answers. This is built using PageDown on the client side and MarkDownSharp and Jeff's HTML sanitizer on the server side. I'm thinking of building something very similar myself. I…
Henrik Ripa
  • 595
  • 8
  • 24
10
votes
3 answers

Why isn't MarkdownSharp encoding my HTML?

In my mind, one of the bigger goals of Markdown is to prevent the user from typing potentially malformed HTML directly. Well that isn't exactly working for me in MarkdownSharp. This example works properly when you have the extra line break…
Steve Wortham
  • 21,740
  • 5
  • 68
  • 90
6
votes
1 answer

Syntax highlight code snippets in Orchard when configured to use markdown

I've installed Orchard 1.7.0, enabled markdown for blog posts (roughly as detailed here) but I'm unable to figure out how to add syntax highlighting for C# (or any language) to my posts. Does Orchard have the facility to add syntax highlighting for…
qujck
  • 14,388
  • 4
  • 45
  • 74
5
votes
2 answers

Does MarkdownSharp allow inverse translation (HTML to Markdown)?

The title is self-explaining. I would like to translate my Markdown into HTML but also the inverse direction should be possible. How to achieve this using MarkdownSharp? In case there is no support for bidirection, what tool do you suggest me to use…
Andry
  • 16,172
  • 27
  • 138
  • 246
4
votes
2 answers

Can Pagedown turn "\n" into
, just like MarkdownSharp's Autonewlines option?

I'm using markdown editor with Pagedown and MarkdownSharp. There is an option "AutoNewlines" in MarkdownSharp. I wonder how to do this in Pagedown (http://code.google.com/p/pagedown/). Thank you!
Chance
  • 1,317
  • 2
  • 12
  • 18
3
votes
2 answers

MarkdownSharp is converting Url's that contain underscore characters

I am using MarkdownSharp in one of my projects and have noticed that if any of my Url's contain pairs of underscore characters somewhere within it, it's treated as italic and therefore replaces the _ with . I've had a look on google but can't…
marcusstarnes
  • 6,393
  • 14
  • 65
  • 112
3
votes
0 answers

New to Google Code - How to apply a patch

I've been using MarkdownSharp for a while, but after reading a twitter post from @Nick_Craver, I was thinking about adding rel="nofollow" to my implementation as well. I see there's already a patch for it, and I figure that instead of re-writing it,…
Chase Florell
  • 46,378
  • 57
  • 186
  • 376
3
votes
1 answer

Markdown sharp wrapping my html string in a "p" element?

I am using Markdownsharp v1.13. The following statement: new Markdown().Transform("
\r\n

\r\n No archives.\r\n

\r\n
") Is wrapping the result into a p element: > "

shenku
  • 11,969
  • 12
  • 64
  • 118
2
votes
1 answer

Markdown for ASP.NET MVC

I'm looking for a basic markdown component for ASP.NET MVC and Razor. I don't need anything fancy or particularly extensible, it just needs to play nice with MVC and be compatible with the BSD License. (A NuGet package is a definite plus.)
Jonathan Allen
  • 68,373
  • 70
  • 259
  • 447
1
vote
1 answer

does MarkdownSharp include client/javascript bits?

Im trying to add a Markdown editor to my site. I've installed MarkdownSharp via nuget. Problem is I cant find any documentation on how to use it. What exactly is this library for? If it doesnt include the client side editor where can I get one that…
nacho10f
  • 5,816
  • 6
  • 42
  • 73
1
vote
1 answer

Integrating MarkitUp and MarkdownSharp with asp.net forms website

I'm using markdownsharp with my asp.net forms website. I want to use MarkItUp as my editor and have found a straight forward article on how to integrate with MVC which seems straight forward enough:…
asn1981
  • 237
  • 1
  • 7
  • 20
1
vote
1 answer

Is markdownsharp able to make a list when there is no blank line immediately preceding the list?

Here is a little snippet from my project in csharp 2010 express, using markdownsharp: MarkdownSharp.Markdown md = new MarkdownSharp.Markdown(); switch (htmlPageTemplate) { case "Text.html": …
George Sisco
  • 621
  • 3
  • 9
1
vote
1 answer

Where can I find a pre-compiled Markdown# dll?

I'd like to use Markdown# in a project I'm working on (Not a .Net project, but I have the ability to instantiate .Net class libraries and use them natively). Unfortunately I haven't been able to find a pre-compiled Markdown# DLL. I'd really rather…
Adam Tuttle
  • 19,505
  • 17
  • 80
  • 113
1
2