aboutsummaryrefslogtreecommitdiff
path: root/lisp/hcel-utils.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/hcel-utils.el')
-rw-r--r--lisp/hcel-utils.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/hcel-utils.el b/lisp/hcel-utils.el
index c7b6755..9db5d81 100644
--- a/lisp/hcel-utils.el
+++ b/lisp/hcel-utils.el
@@ -140,4 +140,11 @@ Example of an idSrcSpan:
(alist-get 'exprType (alist-get 'info expr)))))
(cons expression type)))
+(defun hcel-render-html (html)
+ (when html
+ (with-temp-buffer
+ (insert html)
+ (shr-render-region (point-min) (point-max))
+ (buffer-string))))
+
(provide 'hcel-utils)