diff --git a/jupyter-org-client.el b/jupyter-org-client.el index 11587ef0..1cfe1c06 100644 --- a/jupyter-org-client.el +++ b/jupyter-org-client.el @@ -1715,8 +1715,9 @@ EL is an Org element with the properties (delete-region (point) (let ((pos (next-single-property-change (point) 'jupyter-pandoc))) - (if pos (1+ pos) + (if pos (min (1+ pos) (point-max)) (point-max)))) + (message "PANDOC: %s" to-string) (insert to-string))))))) (proc (jupyter-org--start-pandoc-conversion el cb))) (jupyter-org-raw-string