|
57 | 57 | (declare-function org-next-block "org" (arg &optional backward block-regexp)) |
58 | 58 | (declare-function org-at-table-p "org" ()) |
59 | 59 | (declare-function org-inside-LaTeX-fragment-p "org" ()) |
60 | | -(declare-function org-toggle-latex-fragment "org" (&optional arg)) |
| 60 | +(declare-function org-latex-preview "org" (&optional arg)) |
61 | 61 |
|
62 | 62 | (defcustom jupyter-org-auto-connect t |
63 | 63 | "Automatically establish a connection to a src-block session. |
@@ -896,7 +896,7 @@ non-nil, return FILE with EXT as the extension. Otherwise, return |
896 | 896 | FILE." |
897 | 897 | (cond |
898 | 898 | ((null file) file) |
899 | | - ((image-type-from-file-name file) file) |
| 899 | + ((image-supported-file-p file) file) |
900 | 900 | ((not (null ext)) (concat file "." ext)) |
901 | 901 | (t file))) |
902 | 902 |
|
@@ -962,7 +962,7 @@ will be inserted by calling `org-element-interpret-data' first. |
962 | 962 | The returned result should be a representation of a MIME type's |
963 | 963 | CONTENT. CONTENT is a property list like |
964 | 964 |
|
965 | | - '(:data DATA :metadata METADATA) |
| 965 | + \='(:data DATA :metadata METADATA) |
966 | 966 |
|
967 | 967 | that contains the DATA/METADATA of the mime type. As an example, |
968 | 968 | if MIME is `:text/markdown', then DATA should be the markdown |
@@ -1496,7 +1496,7 @@ Assumes `point' is on the #+RESULTS keyword line." |
1496 | 1496 | (when (eq (org-element-type context) 'paragraph) |
1497 | 1497 | (save-excursion |
1498 | 1498 | (goto-char (jupyter-org-element-begin-after-affiliated context)) |
1499 | | - (when (looking-at-p (format "^[ \t]*%s[ \t]*$" org-bracket-link-regexp)) |
| 1499 | + (when (looking-at-p (format "^[ \t]*%s[ \t]*$" org-link-bracket-re)) |
1500 | 1500 | (setq context (org-element-context))))) |
1501 | 1501 | context)) |
1502 | 1502 |
|
@@ -1636,7 +1636,7 @@ See `jupyter-org-toggle-latex'." |
1636 | 1636 | (let ((ov (car (overlays-at (point))))) |
1637 | 1637 | (unless (and ov (eq (overlay-get ov 'org-overlay-type) |
1638 | 1638 | 'org-latex-overlay)) |
1639 | | - (org-toggle-latex-fragment)))))) |
| 1639 | + (org-latex-preview)))))) |
1640 | 1640 |
|
1641 | 1641 | ;;;; Add result |
1642 | 1642 |
|
|
0 commit comments