Quick Start
Installation
Using Bun (Recommended)
bash
bun install -g lianshu-editorUsing npm
bash
npm install -g lianshu-editorLaunch Editor
bash
lianshu-editorThe editor will open in your browser.
Open Files
bash
# Open a single file
lianshu-editor path/to/file.md
# Open a directory
lianshu-editor path/to/directoryBasic Usage
Create New File
- Click the "New" button in the top left
- Enter the file name
- Start editing
Editing Markdown
The editor supports standard Markdown syntax:
markdown
# Heading 1
## Heading 2
**Bold** *Italic* ~~Strikethrough~~
- List item 1
- List item 2
1. Ordered list 1
2. Ordered list 2
[Link](https://example.com)
Keyboard Shortcuts
Ctrl/Cmd + S: SaveCtrl/Cmd + N: New fileCtrl/Cmd + O: Open fileCtrl/Cmd + P: Command paletteCtrl/Cmd + /: Toggle preview
Configuration
The editor config file is located at ~/.lianshu-editor/config.json:
json
{
"theme": "dark",
"fontSize": 14,
"autoSave": true,
"preview": "side"
}Next Steps
- Learn about Features
- Read the User Guide
- Check the API Docs