markdown

What is the best way to store and display markdown-entered text?

I've noticed that the wmd editor can either output HTML or markdown. Does it make more sense to store the user input (in a database) as markdown or HTML? If as markdown, what is the best way to display it on a webpage later on (any examples would be greatly appreciated). Given that the recommendation is store it as markdown, are there a...

What tools does your team use for writing user manuals?

Basic requests are: human readable / text format (for easy version control) online (for collaboration) easy formatting (markdown ok, html is too much) strict formatting (so authors don't invent new types of titles, bullets etc.) exportable to PDF, HTML easy backup and deployment (so we can "deploy" to customers site as read only versi...

Markdown in outlook

Because this is not the kind of company where wiki's are accepted, we tend to do a lot of communication through outlook. Sending code snippets through it is painfull. Is there some way to get the markdown thing we have here, but in outlook? ...

What markup language for richly formated content?

When you are developing a web-based application and you want to allow richly formatted text from the user you have to make a choice about how to allow that input. Many different markup languages have been created because it is arguably more difficult to sanitize HTML. What are the advantages and disadvantages of the various different m...

How can I make spotlight index markdown files?

I typically use the .markdown or .md extension for markdown documents. Unfortunately spotlight refuses to index them unless they have the .txt file extension. I've seen a possible solution involving editing Info.plist files on the textmate blog. Is there a better way? Update: I just discovered QuickLook generator for Markdown files whi...

Better ruby markdown interpreter?

I'm trying to find a markdown interpreter class/module that I can use in a rakefile. So far I've found maruku, but I'm a bit wary of beta releases. Has anyone had any issues with maruku? Or, do you know of a better alternative? ...

Ideas on implementing Stack Overflow-style comments

I like the Stack Overflow comment UI a great deal and I'm looking into implementing the same thing on my own website. I looked at the code and it looks like the main tool here is WMD, with the JQuery TextArea Resizer playing a supporting role. WMD converts Markdown into HTML on the client side. That's pretty nice because it helps out w...

Truncate Markdown?

I have a Rails site, where the content is written in markdown. I wish to display a snippet of each, with a "Read more.." link. How do I go about this? Simple truncating the raw text will not work, for example.. >> "This is an [example](http://example.com)"[0..25] => "This is an [example](http:" Ideally I want to allow the author to (...

Is Markdown Friendly Enough for Non-Technical Users?

The Problem I love using markdown to write questions, answers, posts, comments etc. That being said, I am a very technical, detail oriented, programmer type. However, I am working on a CMS of sorts to be used by non-technical folks. I am using Markdown for this, but I'm becoming increasingly worried that it will be too technical for ...

Entering complex URLs in Markdown syntax?

Is the problem me, or Stack Overflow? If I post a comment or question with this named link, some text, and then an inline link the preview will show correctly but the actual result is strange. All of the text from the start of the first link up to and including the text of the second link is linked to the first destination. For exampl...

.NET - Server-side Markdown to HTML Conversion

What is a good open source .NET library to convert markdown to HTML on the server? If this has been answered somewhere else please point me to the post. Thanks. ...

Markdown in .NET

Is there a Third Party library available for .NET projects that can convert a markdown document into html server-side? I.e. I've stored Markdown text in a database that needs to be converted to html when it is displayed. I know about WMD, but it only converts client-side. ...

What are the reasons not to allow HTML tables when validating user input fields?

I'm writing a little bit of a wiki and going through all of my options for syntax highlighting. Debating between wiki syntax (mediawiki) and markdown + whitelisted tags. I think I would prefer the latter but I think my users will need tables. Why are tables disallowed here on Stackoverflow? <table> <tr> <td> </td> </tr> </table> ...

Render markup on-the-fly or store html?

Any advice what has worked for you when dealing with user-entered markup, e.g. wiki or markdown. I have both CPU & database space costs, so I'm not sure which way to go. Store markup in database & render to html on the server for each pageview. (Less database space but more CPU usage) Store markup in database & render to html on the cl...

Get raw text from markdown'ed text

In my DB, I have a text that is markdown'ed. The same way than SO does when showing the excerpts of the questions, I would like to get the N first characters of the text, i.e. all formatting must be removed. Of course the MD -> HTML step must be avoided and the work must be done on the MD'ed text. Performance is a requirement. Thx. ...

Using MarkDown on dynamic websites?

Do any WYSIWYG editors exist that work natively in Markdown? (any Platform/Language) ...So consumers don't have to see the code behind, just work in an MS-Word like interface. An assisted MarkDown editor where you're viewing and editing the Markdown-source (like the one I'm writing this question with) would also be okay. ...

How to store lightweight formatting (Textile, Markdown) in database?

I'm going to be implementing a lightweight formatting language (probably Textile, maybe Markdown) in a project I'm working on, and I'm wonder how best to store it in the database. If the user is able to edit the content they're posting, it makes sense to me that the original, non-converted markup be stored so that the user doesn't have ...

How to compile RDiscount on Solaris?

Hi, I have a few Solaris 10 boxes and I'd like to have RDiscount running there. (They are Joyent accelerators, which have a somewhat customized, BSD-ish, userland, in case it matters.) I'm aware of Maruku, rpeg-markdown and other ruby alternatives to BlueCloth, but initially I'd like to go with RDiscount. Here's what I get when trying...

How would you go about parsing markdown?

You can find the syntax here. The thing is, the source that follows with the download is written in perl. Which I have no intentions of honoring. It is riddled with regex and it relies on MD5 hashes to escape certain characters. Something is just wrong about that! I'm about to hard code a parser for markdown and I'm wonder if someone h...

Hosted wiki using StackOverflow-like editing tools?

We're starting developer documentation for one of our projects, and I'd like to set it up as a hosted wiki. There will be lots of code samples, and the WMD/Prettify combination used here on StackOverflow is the simplest way I've seen to enter structured text (with headings, etc.) combined with automatically formatted code blocks. Doe...