在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ncornette/Python-Markdown-Editor开源软件地址(OpenSource Url):https://github.com/ncornette/Python-Markdown-Editor开源编程语言(OpenSource Language):JavaScript 93.2%开源软件介绍(OpenSource Introduction):Python-Markdown-EditorStandalone editor for your local markdown files InstallationTo install the latest stable version from Pypi : $ pip install markdown-editor Usage$ markdown_edit README.md It will open the editor in your browser : Features
Dependencies
Other usage examplesLaunch editor without input file for testing : $ markdown_edit Edit markdown file and save both markdown and html outputs : $ markdown_edit -f README.html README.md ExtensibleYou can import this script as a module to write your own applications based on the markdown editor. example : from markdown_editor import web_edit
from markdown_editor.editor import MarkdownDocument
# ...
MY_HTML_HEAD = 'Editor title'
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__:
doc = MarkdownDocument()
web_edit.start(doc,
custom_actions=[
('Send', action_send),
],
title=MY_HTML_HEAD) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论