Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.78 KB

File metadata and controls

57 lines (40 loc) · 1.78 KB

Markdown Editor

default keymaps

Agit CMS has the same default Keymap (or Key bindings, Keyboard shorcuts) as CodeMirror. Visit standard keymap and default keymap and history keymap(where Mod- means Control or Cmd) for keymaps available by default.

mathjax

Type

$$
a + b = c
$$

to represent block math. Type

$$ a + b = c $$

or

$ a + b = c $

or 

$
a + b = c
$

to represent inline math.

Media

![](${media_public_path}/example.png) written in the markdown editor panel (left side) gets rendered as <img src="http://localhost:${random_port}/${media_public_path}/example.png"> in the preview panel at the right side. (${media_public_path} is a media public path)

Image pasting

Agit CMS allows Ctrl + v to paste into the editor an image previously copied on your clipboard.

Agit CMS automatically uploads pasted image to Media Folder Path and then inserts proper ![](image path) into the editor.

Set media folder path and maybe media public path to for this feature.

A couple of things to note

  • Images larger than 1MB cannot be pasted.
  • At this version, all images pasted into the editor are saved in year-month-date-time.png format

Custom keymaps / toolbar items

Want to add your own keymaps / toolbar items? Try creating your own plugins!

Custom rendering

Not supported yet! But in the future you will be able to define custom renderer function so that Agit supports various kinds of notations, like marmaid.