markdown

Online source code accepting system.

Dear all I need your input. I am developing a web application which accepts source code online, same like stackoverflow. Source code resides inline with other details and one content may have code in multiple languages. I am very much impressed with stackoverflow's system, can anyone please let me know how should I proceed to develop ...

The correct place to put a markdown extension file in a django project ?

I've created a markdown extension file (called mdx_xxx.py) for a django project I'm working on but I can't really decide where to put it. The documentation says that the file should reside on the PYTHONPATH and I've seen several blog posts inviting to just put the file in the root directory of the project. However, that seems like an o...

C#/.NET library for source code formatting, like the one used by Stack Overflow?

I am writing a command line tool to convert Markdown text to html output, which seems easy enough. However, I am wondering how to get nice syntax coloring for embedded code blocks, like the one used by Stack Overflow. Does anyone know either: What library StackOverflow is using or if there's a library out there that I can easily reus...

Why do I need Markdown?

Why do I need a Markdown with a front edit editor like WMD? What does the markdown do to the content that’s sent from the WMD editor? How does Markdown store the content in the backend? Is it the same way like *bold* or in some other format? Why can’t I just do an html encode? Sorry if I sounded very naïve. ...

Expanding PHP Markdown to Accept CSS Classnames

I'm a huge fan of Markdown (using it in nearly all of my PHP projects) but not a fan of its limited output. Much of the rendering is a bit too simple, and doesn't really allow me much control or freedom regardings its layout. For instance, I can insert an image: ![Alt Text](path/to/image.jpg) This is my image! But that will simply be...

How can I mix LaTeX in with Markdown?

I've been using Markdown for class notes, and it's great. I even do some preprocessing on the Markdown so I can do things like tables. But this term I'm teaching a class with a lot of math, and I'd love to be able to put LaTeX formulas with Markdown, something like this: The refinement relation is written $a \sqsubseteq b$, which can ...

How to store Markdown comments

I want to use Markdown for my website's commenting system but I have stumbled upon the following problem: What should I store in the database - the original comment in Markdown, the parsed comment in HTML, or both? I need the HTML version for viewing and the Markdown version if the user needs to edit his comment. If I store the Markdown...

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 not install Visual Studio just for the purpose of compiling the project. Are there DLL do...

Need a sufficiently long & complex Markdown document for performance testing

I'm looking for a long and complex Markdown document that I can use to test performance of different markdown implementations -- as an alternative to iterative benchmarking of a simple document. I thought I might be able to browse around Stack Overflow and find something, but by and large everything I find is pretty simply written; and ...

Codaset wiki markup

I'm sure this is a stupidly simple question, so I apologize in advance. I'm playing with Codaset's wiki right now and trying to create a link to another page. I was assuming that using a word like "AnotherPage" would automatically create a link to a new page, but that doesn't seem to be the case. Since I'm using Markdown with the wi...

After escaping html chars with CakePHP's Santiize::html() is it secure to unescape chars like *() inorder for the markdown parser to work?

Before displaying user posts I run them though Sanitize::html() to escape all html. But it escapes some of the chars that are used for the Markdown parser. This is what I want: I'm testing this markdown. Try clicking here This is what I get: I'm testing this markdown. Try [clicking](http://www.google.com) here So I'm wondering if...

RTL in Markdown

Is there any existing addon spec for markdown that includes support for RTL languages? What I'm hoping for is something like This paragraph is left to right <- This paragraph is right to left Or something... I can tweak my parser to handle this but I want to make sure it doesn't exist already. Thanks. ...

Doxygen alternative for C++

While doxygen seems to be good at indexing a large C++ project, I have some major gripes with it. The generated output is ugly and poorly organized. Just finding a function in doxygen websites is generally a pain. Slow turnaround on finding markup errors. i.e. I have to index my whole project to find I used the wrong syntax on some fun...

What is a good client side markdown editor?

I am using markdownsharp for a javascript client i found http://wmd-editor.com/ and heard it is out of date. I found this and saw it has the same files but when replacing the source with the wmd-editor files the html stopped working. I dont see an obvious solution (or if i am missing files). What javascript markdown preview and editor s...

MarkdownSharp and invalid html

I ran this piece of code var m = new MarkdownSharp.Markdown(); var sz = m.Transform("Test **test** *test* boo"); Console.Write(sz); and got this output. I am doing something wrong because <ol></ol> is not valid html. How do i get rid of it? <ol> </ol> <p>Test <strong>test</strong> <em>test</em> boo</p> <ol> </ol> ...

Secure Python Markdown Library

I'd like to enable users to leave rich text comments, possibly using markdown. I've installed the libraries used on Reddit, but am concerned about the javascript injection attack which occurred last year, especially since I'm still not clear on the details of how the attack was done. Should I still be concerned about comment security? Is...

Convert diff to markdown with strikeout?

I'd like to convert the output of diff (on a Markdown file) to Markdown with <strike> and <em> tags, so that I can see what has been removed from or added to a new version of a document. (This kind of treatment is very common for legal documents.) Example of hoped-for output: Why do weWe study programming languages? notNot in ord...

Can someone explain last year's reddit exploit to me?

Last year a user managed to inject arbitrary javascript into reddit's markdown syntax. Can someone explain how this was done and how I can test whether my site is similarly vulnerable? ...

How do I insert text at the focus into a markitup editor with javascript?

I've implemented markitup to handle users entering markdown text. I want to replace the default image insert command with a nice jquery routine that lets the user browse for an image. I'm able to edit the set.js file to call my javascript routine that brings up the file browser: {name: 'Picture', key: 'P', call: 'insertImage'}, My ins...

Client side html markdown conversion

Hello, I've been trying to create a client side editor which allows the end user to create content in html or markdown. The user has two tabs for switching between the two. I managed to find some javascript that converts markdown to html, so if a user has been writing markdown and switches to the html tab, the html equivilant is shown. I...