Standalone editor for your markdown files
Project description
Python-Markdown-Editor
======================
[![Build Status](https://travis-ci.org/ncornette/Python-Markdown-Editor.svg?branch=master)](https://travis-ci.org/ncornette/Python-Markdown-Editor)
[![PyPI](https://img.shields.io/pypi/pyversions/Markdown-Editor.svg?maxAge=2592000)]()
[![PyPI](https://img.shields.io/pypi/v/Markdown-Editor.svg?maxAge=2592000)]()
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](https://github.com/ncornette/Python-Markdown-Editor/raw/master/screenshot.png)
### Dependencies
- Python-Markdown
### Usage
Launch editor for testing :
```bash
$ markdown_edit.py
```
Edit existing markdown file for preview :
```bash
$ markdown_edit.py readme.md
```
Edit existing markdown file and save html output file :
```bash
$ 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 :
```python
import markdown_edit
# ...
def action_send(document):
send_markdown_text(document.text)
# or
send_raw_html_code(document.getHtml())
# or
send_html_with_styles(document.getHtmlPage())
return html_to_display_as_result, keep_running_local_server
if __name__ == '__main__:
markdown_edit.web_edit(
actions =
[
('Send',action_send),
],
title = MY_HTML_HEAD)
```
======================
[![Build Status](https://travis-ci.org/ncornette/Python-Markdown-Editor.svg?branch=master)](https://travis-ci.org/ncornette/Python-Markdown-Editor)
[![PyPI](https://img.shields.io/pypi/pyversions/Markdown-Editor.svg?maxAge=2592000)]()
[![PyPI](https://img.shields.io/pypi/v/Markdown-Editor.svg?maxAge=2592000)]()
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](https://github.com/ncornette/Python-Markdown-Editor/raw/master/screenshot.png)
### Dependencies
- Python-Markdown
### Usage
Launch editor for testing :
```bash
$ markdown_edit.py
```
Edit existing markdown file for preview :
```bash
$ markdown_edit.py readme.md
```
Edit existing markdown file and save html output file :
```bash
$ 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 :
```python
import markdown_edit
# ...
def action_send(document):
send_markdown_text(document.text)
# or
send_raw_html_code(document.getHtml())
# or
send_html_with_styles(document.getHtmlPage())
return html_to_display_as_result, keep_running_local_server
if __name__ == '__main__:
markdown_edit.web_edit(
actions =
[
('Send',action_send),
],
title = MY_HTML_HEAD)
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Markdown-Editor-0.9.3.tar.gz
(533.1 kB
view hashes)
Built Distribution
Close
Hashes for Markdown_Editor-0.9.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfdf1c58ea46fa025fbd87b81f2cd27fcee812e71f6db8cc4e12c15f920e4d16 |
|
MD5 | b6eb10c479ae242fce0dd12ac11ede92 |
|
BLAKE2b-256 | a10d53e46c6785c224fcf4e397cb7dba841f6b30dbc418df74dcf441776574ad |