mobily / markdown-live

Markdown preview with live update.
341 stars 22 forks source link

Have you considered an integration with sublime? #4

Closed gagle closed 1 year ago

gagle commented 9 years ago

This is by far the best tool for writing markdown files but it needs a new functionality to achieve perfection.

Right now when a file changes on save, the content is sent to the browser via websockets. This is ok, but I'd like to see the changes without saving the file, a "true" markdown live preview. The way to achieve this is simple. Open an http port and add a route: POST /:filename, the body will contain the content of the file. When you receive a request, you just need to forward the content to the browser which is listening on the other port. This way you'll be allowing the integration with any ide, for example, sublime.