summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Porter <adam@alphapapa.net>2023-09-14 09:03:25 -0500
committerAdam Porter <adam@alphapapa.net>2023-09-14 09:03:25 -0500
commitea6e577ea48ac369850bb2064383e4c60d4aeaff (patch)
tree2861dcd634660977c32c70e593ea4476aeb3450a
parent726e81f11443c570186f46d63f74346efa04fd87 (diff)
Fix: (ement-room-send-org-filter) Prevent subscripts
Fixes #217. Suggested-by: Phil Sainty <phil@catalyst.net.nz>
-rw-r--r--README.org1
-rw-r--r--ement-room.el2
2 files changed, 3 insertions, 0 deletions
diff --git a/README.org b/README.org
index 5a1f0d8..207697b 100644
--- a/README.org
+++ b/README.org
@@ -312,6 +312,7 @@ Ement.el doesn't support encrypted rooms natively, but it can be used transparen
+ File event formatter assumed that file size metadata would be present (a malformed, e.g. spam, event might not have it).
+ Send correct file size when sending files/images.
++ Underscores are no longer interpreted as denoting subscripts when sending messages in Org format. (Thanks to [[https://github.com/phil-s][Phil Sainty]].)
** 0.11
diff --git a/ement-room.el b/ement-room.el
index 97269d0..1dbf8bf 100644
--- a/ement-room.el
+++ b/ement-room.el
@@ -4267,6 +4267,7 @@ Then invalidate EVENT's node to show the image."
(defvar org-export-with-toc)
(defvar org-export-with-broken-links)
(defvar org-export-with-section-numbers)
+(defvar org-export-with-sub-superscripts)
(defvar org-html-inline-images)
(declare-function org-element-property "org-element")
@@ -4314,6 +4315,7 @@ compatibility), and the result is added to the CONTENT as
(let ((org-export-with-toc nil)
(org-export-with-broken-links t)
(org-export-with-section-numbers nil)
+ (org-export-with-sub-superscripts nil)
(org-html-inline-images nil))
(org-html-export-as-html nil nil nil 'body-only)))
(with-current-buffer "*Org HTML Export*"