markdown

Convert Textile Markup to Markdown?

I'm merging legacy Systems and some components use Markdown and others use Textile formatting. This is extremely confusing to my users. Therefore I want to standardize on Markdown. Is there a way to convert at least the Bulk of Textile formatting to markdown automatically? ...

Which StackOverflow-style MarkDown (WMD) javascript editor should I use?

Background I'm working on an application which requires user-entered content, and I've decided to use a StackOverflow-style MarkDown editor. After researching this topic for the last few days, I realize there are numerous forks of the base WMD editor, some with a few basic enhancements and some with serious differences from the StackOve...

How can you convert RTF text to Markdown-syntaxed plain text in Cocoa?

I need to be able to convert RTF or HTML to Markdown-syntaxed plain text for uploading to my server. I need to achieve this in Cocoa/Obj-C 2.0. Does anyone know how to do this? Thanks so much —» Alex. Edited Thu 4:53 PM Umm. In answer to Yuji's comment, I'm trying to make an NSStatusItem droplet that accepts text. It doesn't matter ...

Markdown for .NET/C#?

is there a way i can have markdown in .NET/C# application? i wonder shld i store the data in HTML or markdown text? if i store the data in HTML, when the user edits, they will see HTML, but if i store in Markdown, everytime i display, i got to convert to HTML(slow?) or store the HTML in another column, will it waste too much space? i ...

Regex: markdown-style link matching

I want to parse markdown style links, but I'm having some trouble matching the reference style ones. Like this one: [id]: http://example.com/ "Optional Title Here" My regex gets the id and the url, but not the title. Heres what I have: /\[([a-zA-Z0-9_-]+)\]: (\S+)\s?("".*?"")?/ I go through and add the references to a hashtable. th...

i18n / Markdown - Does Markdown support internationalization?

I'm building a CMS which needs to manage content in english, chinese, and spanish at a minimum. Do most markdown implementations handle UTF-8 encoded text? Is the Markdown language designed to be used with non-english languages? I'm currently using Markdown Extra by Michel Fortin. ...

Rail 3 escaping maruku

I am using Maruku with my RoR3 app. But the problem is that when i use the h(text) method to escape the text from the database before i use Maruku it escapes > to > so Maruku wont see this as a blockquote. But i still want to escape the rest of the text so my question is how can i make this work? I don't want to disable the escapin...

Possible to embed markdown within erb?

If you use haml as rails view template, you can write portion of your page using markdown by using the ":markdown" filter. Is is possible to do the same using erb? ...

Get underlined text with markdown

Greetings, I am using BlueCloth as a Markdown library for Ruby and I can't find any syntax for getting a text underlined. Any ideas? Peter ...

mediawiki markup equivalent of WMD live-previewing editor? (not WYSIWYG)

Anyone have a recommendation for an editor like the WMD editor, but using MediaWiki markup instead of Markdown? Our site is already using MediaWiki markup but we want a slicker editor without changing markup completely. Requirements include: live preview of formatted text underneath the markup you're typing a toolbar for common forma...

How can I disallow all HTML using markdown (PHP and JS)?

I'm using the PHP markdown library: http://michelf.com/projects/php-markdown/ and the Javascript markdown library: http://attacklab.net/showdown/ I want to disallow all HTML, both the versions of markdown seem to allow it indiscriminately. My first attempt was simply to escape all html entities before feeding into markdown. However this...

What's wrong with my markdown syntax? Broken in stackoverflow and bluecloth...

I just wrote some markdown and it doesn't seem to render correctly. Is it legal syntax to have an ordered list, followed by newlines, then followed by an unordered list? Or is this a bug in bluecloth? For example: 1. One 2. Two 3. Three * Apple * Banana * Carrot Bluecloth creates a single <ul> and nests apple, banana and carrot as ...

Generating a link with Markdown (BlueCloth) that opens in a new window

Hey, I'd like to have a link generated with BlueCloth that opens in a new window. All I could find was the ordinary [Google](http://www.google.com/) syntax but nothing with a new window. Ideas? Regards Tom ...

What is the best way to store WMD input/markdown in SQL server and display later?

I'm looking at using WMD in my project instead of my existing RadEditor. I have been reading a few posts on how to store and retrieve the data, and I want to make sure I have the concept correct before proceeding. If my research is correct, here is what I should be doing. I should store the editor data twice (Once as HTML and once as...

Sanitizing HTML using Jeff Atwood's example

I'm working on sanitizing my Html using Jeff Atwood's code found here But the problem I'm running into is when I input Markdown links into the form (they get removed) <http://www.example.com&gt; Here's the code I'm using. private static Regex _tags = new Regex("<[^>]*(>|$)", RegexOptions.Singleline | RegexOptions.ExplicitCapture ...

On codaset, in a ticket description: is it possible to render raw text instead of markdown processed markup ?

Well, everything is in the title ;-) Thanks Fro_oo ...

Dear Santa - Storing multi-lingual data in serialised php in mysql!

Dear Santa, I hope you're reading this! I have to insert some data into a MySQL table. The data will be retrieved and then (at present) unserialized at which point the correct display language will be selected... I've managed to munge the data (text encoded with markdown) into a set of PHP statements, roughly along the following line...

How do I allow safely and inexpensively allow images on my site?

I have developed a social networking site for gardeners website, and am interested in giving users the ability to add images to their "tweets". If I allow them to upload images to the actual site, it seems like this will quickly become expensive (this is a side project, not funded by anyone than myself and my own obsessions). Let's say...

How to convert markdown (WMD) text to plain text

Hello, I am saving both the markdown text and html versions of text in my database. I have a question and answer site. When users browse the questions they are viewing snippits of markdown. They should only be viewing plain text just like when browsing questions on stackoverflow there are no markdown text or html text shown. Is there a w...

Does anyone know how to disable "code" blocks in WMD Markdown and MarkDownSharp

I'm wondering if anyone can help show me how to completely disable code blocks in WMD Markdown as well as in MarkDownSharp? In my implementation of markdown, there is no reason for the user have the ability to insert code. I have removed the editor button, but there is still the ability to insert the 4 spaces for a code block. ...