diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2023-10-29 16:44:18 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2023-10-29 16:47:59 +0100 |
| commit | fbb2933f9b58bc8761632e245f68b95015f4d808 (patch) | |
| tree | d16d72b6d5a03df003ffd03a628360f071e666ef | |
| parent | a337bdf8afd85816dedd3666516354e76641c84a (diff) | |
| download | dotfiles-fbb2933f9b58bc8761632e245f68b95015f4d808.tar.xz | |
Stir HTML-yanking function a bit
| -rw-r--r-- | .emacs | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -617,14 +617,23 @@ (let ((default "plain")) (read-string (format-prompt "Convert to:" default) nil nil default))))) - ;; TODO: make this a transient to easily (un)set pandoc extensions. - (let* ((disabled-html-extensions '("native_divs" "native_spans")) + ;; TODO: make this a transient to easily (un)set + ;; * extensions + ;; * switches (--wrap) + ;; * filters (remove all attributes) + (let* ((disabled-html-extensions (list + "native_divs" + "native_spans" + )) + (disabled-markup-extensions (list + ;; "smart" + )) (html-spec (funcall 'string-join `("html" ,@disabled-html-extensions) "-")) - (disabled-markup-extensions '("smart")) (markup-spec (funcall 'string-join `(,markup ,@disabled-markup-extensions) "-"))) (call-process-region html nil "pandoc" nil t t + "--wrap=none" "--from" html-spec "--to" markup-spec))) ;;;; Miscellany. |
