Skip to content

Repository files navigation

Python-Markdown-Editor

Standalone editor for your markdown files

Features

  • Side-by-side markdown editor & html preview
  • Live, when you type html preview
  • Codehilite & markdown extra syntax support by default
  • Github syntax support
  • Github styles for rendering and codehilite

screenshot

Dependencies

  • Python-Markdown

Usage

Launch editor for testing :

$ markdown_edit.py 

Edit existing markdown file for preview :

$ markdown_edit.py readme.md

Edit existing markdown file and save html output file :

$ markdown_edit.py -f readme.html readme.md

Extensible

You can import this script as a module to write your own applications based on the markdown editor.

example :

importmarkdown_edit# ...defaction_send(document):
send_markdown_text(document.text)
# or send_raw_html_code(document.getHtml())
# or send_html_with_styles(document.getHtmlPage())
returnhtml_to_display_as_result, keep_running_local_serverif__name__== '__main__:
markdown_edit.web_edit(
actions=
[
('Send',action_send),
],
title=MY_HTML_HEAD)

About

Standalone editor for your markdown files

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages