markdown

In search of an open-source standalone markdown GUI editor

Where can I find a decent stand-alone (meaning not web-based) Markdown editor? One Markdown syntax highlighting, and preferably HTML preview. I run both Windows and OS X, so something cross-platform (Java or AIR based) would be ideal. ...

Lightly styled text library for WPF?

Does anyone know of a lightly-marked-up-text to styled-text formatting library (ie. something like Markdown# or Textile.NET), but which produces a native XAML document (or rather, a FlowDocument model or similar that can be displayed directly in a WPF app), to avoid the use of a WebBrowser? Bonus points for something lightweight. I'm h...

How can I embed a YouTube video in a Markdown enabled text field?

This is the code I'm trying to embed: <object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/jJECepNeCJ0&amp;amp;hl=en_US&amp;amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/jJECepNeC...

WMD Markdown appears broken in IE8

I've already found this question on SO (which is exactly the same problem I'm having), but the OP's solution a) doesn't work for me, and b) isn't feasable in my site. On the Google Code project for WMD, it says IE8 support is on its way. My question is, does anyone know how to make WMD Markdown work in IE8 right now? Or does anyo...

Regular expression to turn hyphens into double hyphens

My implementation of markdown turns double hyphens into endashes. E.g., a -- b becomes a – b But sometimes users write a - b when they mean a -- b. I'd like a regular expression to fix this. Obviously body.gsub(/ - /, " -- ") comes to mind, but this messes up markdown's unordered lists – i.e., if a line starts - list item, it will beco...

In Markdown, what is the best way to link to a fragment of a page, i.e. #some_id?

I'm trying to figure out how to reference another area of a page with Markdown. I can get it working if I add a <div id="mylink" /> and for the link do: [My link](#mylink) But my guess is that there's some other way to do an in-page link in Markdown that doesn't invlove the straight up div tag. Any ideas? Thanks! Chris ...

Markdown or HTML

Hi, I have a requirement for users to create, modify and delete their own articles. I plan on using the WMD editor that SO uses to create the articles. From what I can gather SO stores the markdown and the HTML. Why does it do this - what is the benefit? I can't decide whether to store the markdown, HTML or both. If I store bot...

Multiple <blockquote>'s in a row using Markdown Syntax?

I'm trying to include multiple blockquotes using markdown, but I'm stuck on the syntax for closing out the initial blockquote and starting a new one instead of continuing in the current blockquote and adding additional paragraphs... === Current syntax === > Review1 > -- <cite>Person1</cite> > Review2 > -- <cite>Person2</cite> ...

text does not move to next line for WMD

I am using WMD for my textarea form and for some reason the text inside the preview box does not wrap once the text inside the text area continues to the next line. <div class='wmd-preview'> </div> Does anyone have a solution to this? the wmd that i am talking about is the one that is used by stackoverflow http://wmd-editor.com/ ...

Turn off reference style links in derobins' wmd

I'm using the SO (derobins) version of wmd in a project and I'd like to be able to turn off the reference style linking. Basically, I'd like to turn off linking where: [an example][id] is a link, with the id being listed at the end of the entry, and instead use the simpler [This link](http://example.net/) syntax by default. ...

Sidebar missing after adding a custom decorator to a form element

the side bar is in the layout.phtml file. i am very confused why does adding 1 decorator to my form, cause my sidebar ... hmm actually its every thing after that section#main - i am using HTML5 - to go missing layout.phtml ... /* scripts and all */ ... <body> <header> ... </header> <nav> ... </nav> <div class="clear" /> ...

Markdown parser in Javascript

Does anyone know a markdown parser in Javascript ? PS : Actually, I do this with request to server to parse it, but a client side parser would be better :) . Edit : If there is no one, I will use HTML (with WYSIWYG editor). ...

I need help modifying a regular expression for PHP markdown

I'm modifying PHP Markdown (a PHP parser of the markup language which is used here on Stack Overflow) trying to implement points 1, 2 and 3 described by Jeff in this blog post. I've easily done the last two, but this one is proving very difficult: Removed support for intra-word emphasis like_this_example In fact, in the "normal" mark...

Is there a reason why we don't embed the design document for code in the source itself?

Couldn't we write the design documentation for source code within the source itself? I suppose like Doxygen but with the focus taken away from implementation towards design. Essentially (and rather excitingly) you have a nice big chunk of markdown at the end of your source file. Each time I create a new source file (and begin writing in...

Render Markdown in Emacs buffer

Is it possible to present Markdown rendered in an Emacs buffer using Emacs' own buffer text formatting capabilities? Emacs in graphical environments has rich text presentation capabilities (font styles, colors, links and even images) so it should be quite possible. Are there any existing implementations? Note that the idea is to have th...

What do I need to use Markdown in a Java webapp?

I'm thinking on adding Markdown to a Java project with using: Tapestry 5 Spring Maven ( Among other technologies ) Q1. What javascript library can I use for the client side? I'm thinking on using Cletus' port of MarkDownSharp for the backend. Q2. What strategy should I follow to add JMD to my project? My code it's a Maven pr...

LHS and Markdown: Codeblocks

I happen to really like Markdown (probably because of SO) and I like programming in Haskell. I have recently discovered Literate Haskell (LHS) and I want to use Markdown and LHS together. Let me give you this dumb example: Crazy Literate Haskell ====================== This is an example of some literate Haskell Code: > module Main whe...

Markdown open a new window link

hi im trying to edit a website which uses a modx cms, and it's using Markdown. Now I would like to open a new link into another window. is it possible? Thanks The Link [Registration](http://www.registration.com) ...

Markdown within yaml / yaml multi-line escape sequence?

Is it possible to store unescaped markdown documents in yaml? I've tested key:|+ markdown text block that could have any combination of line breaks, >, -, :, ', " etc etc. This does not work. I need something like CDATA or python style triple-quotes for yamal. Any ideas? ...

Asp.net MVC Markdown editor and Html.Encode

I might be mis-understanding here but from my understanding a markdown editor strips out all html. After then using a markdown.Transform() type of method this database stored markdown is converted into html with h1, p etc. With asp.net MVC the general rule is Html.Encode everything. But does this still apply when using a Markdown edit...