markdown preview

This commit is contained in:
nahakubuilde
2025-08-25 17:54:27 +01:00
parent 9e73430441
commit 240b71e321
4 changed files with 340 additions and 21 deletions

View File

@@ -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