- Notifications
You must be signed in to change notification settings - Fork4
Markup Editor for reStructedText and Markdown
License
NotificationsYou must be signed in to change notification settings
liuyug/meditor
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Markup Editor is a editor for reStructuredText and Markdown.
Tip
For bad performance, close "preview on input".
- support Markdown and reStructuredText
- Pygments to support Syntax Highlight
- support MathJax
- Format table
- VIM mode
- HTML Preview
- Synchronize scroll with preview window
- drag and drop
- Multiple workspaces
- Customized template
- Peview CSS Themes
- Multiple editor windows
- support Markdown Graphviz
vim command:
h, j, k, l # move left, down, up, right~, gu, gU # change uppper or lower casew, b, e # move forward or backward by word0, ^, $ # move begin of line, first word of line, end of linegg, G # move document top and bottomctrl+f, ctrl+b # page down and upd, db, dw, D, dd # delete back word, word, to end of line, liney, yy, x, X, p # copy, cut, pastei, a, A, o, O # insert, append, newline<, > # indentJ, I # line join, and vertical insertu, . # undo and redo/, :/, /<search>, s/<search>/<replace/ # search and replacec, w, r # selection change, read and writen [file] # new window,f # format table
vim mode:
- normal
- insert
- visual
- visual block
- command:
:w
,:q
inline:
:math:`E=mc^2`
block:
.. math:: E=mc^2
inline:
\( E=mc^2 \)
block:
\[ E=mc^2 \]$$ E=mc^2 $$
InstallGraphviz first! The command "dot" should be in system PATH.reStructuredText----------------
.. dot:: svg :width: 100% :height: 100% :alt: image.svg digraph G { node[fontname="simsun"] edge[fontname="simsun"] rankdir=LR Earth [peripheries=2] Mars Earth -> Mars }
{% dot attack_plan.svg digraph G { rankdir=LR Earth [peripheries=2] Mars Earth -> Mars }%}
in Linux:
pip3 install meditor --user
install with download from github:
# download sourcegit clone https://github.com/liuyug/meditor.gitcd meditor# for Virtualenvvirtualenv ../virtualenv# on Linuxsource ../virtualenv/bin/activate# on Window cmd../virtualenv/scripts/activate# on Window PowerShellSet-ExecutionPolicy -Scope CurrentUser RemoteSigned../virtualenv/scripts/activate# check version, above 3.5python --versionpip --version# install 3rd packagespip install -r requirements.txt# prepre data files# ui windowbash ui.sh# fetch reStructuredText documentsbash help.sh# for Simple MathJaxbash math.sh# for preview themesbash themes.sh# for icon theme that is used under win32bash icon_theme.sh listbash icon_theme.sh <theme name># install meditorpython3 setup.py install . --user
Note
If you run as user 'root' it need add environment variable "export QTWEBENGINE_DISABLE_SANDBOX=1" to disable sandboxing.
check screenshot directory to view more Themes
Iconset:NuoveXT 2 Icons by Saki
About
Markup Editor for reStructedText and Markdown
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published