I'm very excited about this new blogging platform Ghost. The markdown support and live preview are amazing. How they are developing extensions for markdown like drag and drop image upload?
-
Ghost, http://tryghost.org/
-
Answer:
Markdown is a very loose basic specification for an incredibly useful language. Several people have been extending Markdown to add their own syntax and repurpose it for their needs. When this happens people generally refer to the new syntax as a "flavour" of Markdown. The most famous, currently, is probably https://help.github.com/articles/github-flavored-markdown, which adds a whole bunch of really interesting new functionality which is mainly targeted at Developers working with the Github platform. The only thing Markdown really does, is get converted to valid HTML. So extending it is a case of deciding what you would like to do, and implementing it in whatever script you're using to convert your Markdown to HTML. In the case of Ghost, this is currently a script called https://github.com/coreyti/showdown. In order to create the image uploader, we simply hook into what the user is typing (at the moment with a http://en.wikipedia.org/wiki/Regular_expression) and detect when they type the syntax which we want to use. When that happens, we interpret the syntax and use it to generate an upload form in the preview pane. Finally, once the image has completed uploading, we send valid data (in this case the uploaded image source url) from the uploader *back* to be injected into the Markdown syntax. Our implementation is far from perfect. Like most other things in Ghost, it's a bit of a prototype. At the moment we're relying on extending 3rd party scripts and plugging them together in order to achieve the end result we're looking for - but in the long run this is an area that we'd like to build out completely from scratch. Writing workflow is undoubtedly the core competency of Ghost, and we want to make sure that ours is really, really good :)
John O'Nolan at Quora Visit the source
Related Q & A:
- How to drag and drop a JPanel to another JPanel?Best solution by stackoverflow.com
- What is the average pay package for a new I.I.M. recruit?Best solution by answers.yahoo.com
- How do i get my contacts onto the new windows live?Best solution by Yahoo! Answers
- I'm having problems with my Windows live messenger?
- Pros and cos about this 3 cars.... My lease is about to end and I'm looking for a new car?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.