Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Markup Editor for reStructedText and Markdown

License

NotificationsYou must be signed in to change notification settings

liuyug/meditor

Repository files navigation

VersionDownloads

Markup Editor is a editor for reStructuredText and Markdown.

Tip

For bad performance, close "preview on input".

Feature

  • 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

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

MathJax

reStructuredText

inline:

:math:`E=mc^2`

block:

.. math::    E=mc^2

Markdown

inline:

\( E=mc^2 \)

block:

\[ E=mc^2 \]$$ E=mc^2 $$

Graphviz

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    }

Markdown

{% dot attack_plan.svg    digraph G {        rankdir=LR        Earth [peripheries=2]        Mars        Earth -> Mars    }%}

Install

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.

Screen Shot

check screenshot directory to view more Themes

screenshot.png

screenshot/screenshot_rst_solarized_light.png

screenshot/screenshot_md_infoq.png

Other

Iconset:NuoveXT 2 Icons by Saki


[8]ページ先頭

©2009-2025 Movatter.jp