mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-13 12:49:10 +08:00
Update markdown layer doc
This commit is contained in:
parent
e208f8c83a
commit
28dd7e8125
@ -1,12 +1,39 @@
|
||||
# [Layers](https://spacevim.org/layers) > lang#markdown
|
||||
---
|
||||
title: "SpaceVim lang#markdown layer"
|
||||
---
|
||||
|
||||
# [SpaceVim Layers:](https://spacevim.org/layers) lang#markdown
|
||||
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
* [Description](#description)
|
||||
* [Layer Installation](#layer-installation)
|
||||
* [formatting](#formatting)
|
||||
* [Key bindings](#key-bindings)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
## Description
|
||||
|
||||
This layer is for editing markdown file.
|
||||
|
||||
Mappings
|
||||
## Layer Installation
|
||||
|
||||
Key | mode | description
|
||||
--- | --- | ------------
|
||||
SPC l ft | Normal | Format table under cursor
|
||||
SPC l p | Normal | Real-time markdown preview
|
||||
To use this configuration layer, add `call SpaceVim#layers#load('lang#markdown')` to your custom configuration file.
|
||||
|
||||
## formatting
|
||||
|
||||
SpaceVim use remark to formatting markdown file, so you need to install this program. you can install it via npm:
|
||||
|
||||
```sh
|
||||
npm -g install remark
|
||||
npm -g install remark-cli
|
||||
npm -g install remark-stringify
|
||||
```
|
||||
|
||||
## Key bindings
|
||||
|
||||
| Key | mode | description |
|
||||
| ---------- | ------ | -------------------------- |
|
||||
| `SPC b f` | Normal | Format current buffer |
|
||||
| `SPC l ft` | Normal | Format table under cursor |
|
||||
| `SPC l p` | Normal | Real-time markdown preview |
|
||||
|
Loading…
x
Reference in New Issue
Block a user