diff options
author | Yuchen Pei <hi@ypei.me> | 2022-09-06 10:21:10 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-09-06 10:21:10 +1000 |
commit | 6f522c08939cfbe5f2993a093dd8302aa438fb57 (patch) | |
tree | a744feea81e37cbd4d63d03f7ced6d8f23303cc8 /lisp/hcel-utils.el | |
parent | de0447a69f58bbb55fd73cdc1e799c8e4705f128 (diff) |
showing docs in hcel-ids mode, switch to buffer
Diffstat (limited to 'lisp/hcel-utils.el')
-rw-r--r-- | lisp/hcel-utils.el | 7 |
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) |