Skip to content

Commit

Permalink
fix: unable to preview markdown buffers via mdopen
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Aug 17, 2024
1 parent f7290c7 commit 378de96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grip-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ Use default browser unless `xwidget' is available."
(add-hook 'after-save-hook #'grip-refresh-md nil t)
(add-hook 'after-revert-hook #'grip-refresh-md nil t)

(setq grip--preview-file (concat buffer-file-name ".tmp"))
(setq grip--preview-file (concat (file-name-sans-extension buffer-file-name) ".tmp.md"))
(grip-refresh-md)
(grip-start-process))

Expand Down

0 comments on commit 378de96

Please sign in to comment.