jupyter-org-client.el: Check for tables when mime type is text/org

This allows for better integration with backends that can generate
org-format tables.
This commit is contained in:
Jamie Forth 2019-06-28 11:21:04 +01:00 committed by Nathaniel Nicandro
parent a4d95aab80
commit 05d01ee1e5

View file

@ -963,6 +963,8 @@ passed to Jupyter org-mode source blocks."
(cl-defmethod jupyter-org-result ((_mime (eql :text/org)) _params data (cl-defmethod jupyter-org-result ((_mime (eql :text/org)) _params data
&optional _metadata) &optional _metadata)
(when (string-match-p org-table-line-regexp data)
(put-text-property 0 1 'org-table t data))
(jupyter-org-raw-string data)) (jupyter-org-raw-string data))
(cl-defmethod jupyter-org-result ((mime (eql :image/png)) params data (cl-defmethod jupyter-org-result ((mime (eql :image/png)) params data