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
1
vote
1 answer

MarkdownSharp does not transform list

The following string will properly be transformed from a markdown list to an HTML list: string list = "* Item1\n* Item 2"; However, if I have some other string, then append the list to it, the output is unexpected. string text = "here is some…
anthv123
  • 523
  • 1
  • 8
  • 20
1
vote
0 answers

Is it possible to make MarkdownDeep or MarkdownSharp handle mixed HTML/Markdown like Pandoc?

Take the following snippet of HTML mixed with Markdown.
# Hello
Translate online with Pandoc using Markdown (strict) -> Html and you get this HTML:
bentayloruk
  • 4,060
  • 29
  • 31
1
vote
1 answer

MarkdownSharp errors in a Windows 8 app

I was trying to play with MardownSharp in a Windows 8 app. But I'm getting errors in the Mardown.cs file. It doesn't have System.Configuration and RegexOptions.Compiled.
a_rahmanshah
  • 1,636
  • 2
  • 22
  • 35
0
votes
1 answer

Mvc3 Html.Encode and MarkdownSharp

I am using MarkdownSharp in an mvc3 project. The user is able to insert text into a textbox, that might be dangerous, so that he can write something like "2 < 3". So I am not able to block all dangerous inputs. To display the text, I want to encode…
Chris
  • 1,610
  • 3
  • 18
  • 37
0
votes
1 answer

Markdown nuget installation failed

I get this error when I try to install markdown. Installing 'Markdown 2.2.1'. Successfully installed 'Markdown 2.2.1'. Adding 'Markdown 2.2.1' to SimpleCMS. Uninstalling 'Markdown 2.2.1'. Successfully uninstalled 'Markdown 2.2.1'. Install…
SlicedBread
  • 67
  • 1
  • 8
0
votes
1 answer

KeyNotFoundException in MarkDown

I have the following wrapper helper class that I use for MarkDown. public static class MarkdownHelper { static Markdown _MarkdownTransformer; static MarkdownHelper() { _MarkdownTransformer = new Markdown( new MarkdownOptions {…
Dirk Boer
  • 8,522
  • 13
  • 63
  • 111
0
votes
3 answers

Format Html Codeblocks like Stack Overflow

Is there an open source project out there (written in Java Script or otherwise, for formatting code samples for well-known programming langauges? I'm trying to create a documentation website that includes code samples. Here is an example of what my…
Nathan A
  • 11,059
  • 4
  • 47
  • 63
0
votes
1 answer

Validating that an iframe src has a specific url with regex

I'm in the middle of integrating MarkdownSharp, a serverside Markdown compilation library. I have that working, but now I need to sanitize the generated html. I took a look at the Stack Exchange Data Explorer source code to see how they sanitize…
RobVious
  • 12,685
  • 25
  • 99
  • 181
0
votes
1 answer

Markdown sharp and \n

I have recently started using markdownsharp. 1).... 2).... The problem is that when I use single return key i.e (\n) then there is no effect. When I do use \n\n then the MarkdownSharp represent it as paragraph tag istead. However, I want the \n to…
Spirals Whirls
  • 543
  • 1
  • 8
  • 27
0
votes
1 answer

Link rendering issue while server side markdownsharp conversion and sanitization - how to get the same output as pagedown does

I'm using pagedown editor. The code I'm using for gerating the preview is following: $(document).ready(function () { var previewConverter = Markdown.getSanitizingConverter(); var editor = new Markdown.Editor(previewConverter); …
jwaliszko
  • 16,942
  • 22
  • 92
  • 158
-3
votes
1 answer

Weird jump to top of page behavior with MarkdownDeep

I am playing with MarkdownDeep .Net/Javascipt Edition for an MVC 3 application. Added it via NuGet. The page renders Markdown sharp box just fine. However I get a weird jump to top of page behavior if any of the icons on the markdown sharp toolbar…
Ashok Padmanabhan
  • 2,110
  • 1
  • 19
  • 36
1
2