markdown preview
This commit is contained in:
23
README.md
23
README.md
@@ -124,6 +124,29 @@ To build a standalone binary:
|
||||
```bash
|
||||
go build -o gobsidian cmd/main.go
|
||||
```
|
||||
## Image storing trying to follow Obsidian settings
|
||||
Image storing modes:
|
||||
|
||||
1. Mode 1 (Root directory):
|
||||
- Images are stored directly in NOTES_DIR root
|
||||
- In .md file: just filename like `![[image.png]]`
|
||||
- When showing: serve from NOTES_DIR root
|
||||
|
||||
2. Mode 2 (Specific folder):
|
||||
- Images stored in IMAGE_STORAGE_PATH
|
||||
- In .md file: just filename like `![[image.png]]`
|
||||
- When showing: serve from IMAGE_STORAGE_PATH
|
||||
|
||||
3. Mode 3 (Same as note):
|
||||
- Images stored in same directory as the .md file
|
||||
- In .md file: just filename like `![[image.png]]` (since it's in same dir)
|
||||
- When showing: serve from note's directory
|
||||
|
||||
4. Mode 4 (Subfolder under note):
|
||||
- Images stored in IMAGE_SUBFOLDER_NAME under note's directory
|
||||
- In .md file: `![[<IMAGE_SUBFOLDER_NAME>/image.png]]`
|
||||
- When showing: serve from note's directory/IMAGE_SUBFOLDER_NAME
|
||||
|
||||
|
||||
## License
|
||||
|
||||
|
||||
Reference in New Issue
Block a user