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

@@ -37,6 +37,8 @@ func (h *Handlers) CreateNotePageHandler(c *gin.Context) {
"active_path": utils.GetActivePath(folderPath),
"current_note": nil,
"breadcrumbs": utils.GenerateBreadcrumbs(folderPath),
"image_storage_mode": h.config.ImageStorageMode,
"image_subfolder_name": h.config.ImageSubfolderName,
"ContentTemplate": "create_content",
"ScriptsTemplate": "create_scripts",
"Page": "create",
@@ -204,6 +206,8 @@ func (h *Handlers) EditNotePageHandler(c *gin.Context) {
"active_path": utils.GetActivePath(folderPath),
"current_note": notePath,
"breadcrumbs": utils.GenerateBreadcrumbs(folderPath),
"image_storage_mode": h.config.ImageStorageMode,
"image_subfolder_name": h.config.ImageSubfolderName,
"ContentTemplate": "edit_content",
"ScriptsTemplate": "edit_scripts",
"Page": "edit",