kaushalmodi / ox-hugo

A carefully crafted Org exporter back-end for Hugo
https://ox-hugo.scripter.co
GNU General Public License v3.0
882 stars 132 forks source link

`org-hugo-export-to-md ` hangs there and without `md` output #650

Closed ladieman217 closed 2 years ago

ladieman217 commented 2 years ago

Actual Behavior

org-hugo-export-to-md and without md output

Expected Behavior

export to md file

How to Reproduce the Issue

After saving the following org file, try invoke org-hugo-export-to-md

Example Org File

https://github.com/yufengwang/notes/blob/master/network/network-security.org

Generated Markdown File or Error

See below

Ox-Hugo Debug Information

Debug Info Value (#("tls" 0 3 (fontified t)) "\n# Debug information for `ox-hugo`\n\n\n## Emacs Version\n\n GNU Emacs 27.2 (build 1, x86_64-apple-darwin21.2.0, Carbon Version 165 AppKit 2113.2)\n of 2022-01-21\n\n\n## Org Version\n\n Org mode version 9.6 (9.6-??-971eb6885 @ /Users/richard/.emacs.d/.local/straight/build-27.2/org/)\n\n\n## Hugo Version\n\n hugo v0.98.0+extended darwin/amd64 BuildDate=unknown\n\n\n### Org `load-path` shadows\n\n**Warning**: Possible mixed installation of Org\n\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-exp hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-exp\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-emacs-lisp hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-emacs-lisp\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-css hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-css\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-lob hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-lob\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ol-irc hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ol-irc\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-forth hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-forth\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-macs hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-macs\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-version hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-version\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-scheme hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-scheme\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ox hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ox\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-C hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-C\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-capture hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-capture\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-ref hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-ref\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-clojure hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-clojure\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-mouse hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-mouse\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-ctags hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-ctags\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-entities hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-entities\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-archive hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-archive\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-screen hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-screen\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ol-bibtex hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ol-bibtex\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-haskell hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-haskell\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-table hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-table\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ol-eww hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ol-eww\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ox-org hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ox-org\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-num hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-num\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-plot hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-plot\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ol-rmail hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ol-rmail\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-awk hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-awk\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-groovy hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-groovy\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-octave hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-octave\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-faces hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-faces\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-colview hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-colview\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-R hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-R\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-refile hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-refile\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-timer hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-timer\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-mobile hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-mobile\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-fortran hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-fortran\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-shell hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-shell\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-perl hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-perl\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-sqlite hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-sqlite\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-sed hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-sed\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-list hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-list\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-ruby hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-ruby\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-eval hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-eval\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-habit hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-habit\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-clock hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-clock\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-goto hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-goto\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ox-html hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ox-html\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-src hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-src\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-lisp hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-lisp\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ol-eshell hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ol-eshell\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-ditaa hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-ditaa\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-pcomplete hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-pcomplete\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-lint hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-lint\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ox-latex hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ox-latex\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-sass hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-sass\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-tangle hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-tangle\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-calc hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-calc\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-java hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-java\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ox-icalendar hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ox-icalendar\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ol-mhe hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ol-mhe\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-attach-git hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-attach-git\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ox-md hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ox-md\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ox-beamer hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ox-beamer\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-element hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-element\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-protocol hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-protocol\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-gnuplot hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-gnuplot\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-tempo hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-tempo\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-latex hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-latex\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ol-w3m hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ol-w3m\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-id hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-id\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ox-man hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ox-man\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-feed hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-feed\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-lua hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-lua\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-table hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-table\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-ocaml hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-ocaml\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ol-gnus hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ol-gnus\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-indent hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-indent\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-lilypond hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-lilypond\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-matlab hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-matlab\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-datetree hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-datetree\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ol-docview hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ol-docview\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-python hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-python\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-makefile hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-makefile\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-duration hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-duration\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-agenda hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-agenda\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-dot hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-dot\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-js hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-js\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ox-publish hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ox-publish\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-inlinetask hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-inlinetask\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-org hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-org\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-keys hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-keys\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-core hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-core\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-compat hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-compat\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ol hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ol\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ox-odt hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ox-odt\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ol-info hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ol-info\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-plantuml hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-plantuml\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-eshell hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-eshell\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ox-ascii hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ox-ascii\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-loaddefs hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-loaddefs\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-maxima hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-maxima\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ol-bbdb hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ol-bbdb\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-macro hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-macro\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-sql hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-sql\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-attach hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-attach\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-processing hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-processing\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ox-texinfo hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ox-texinfo\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-crypt hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-crypt\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-footnote hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-footnote\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/org-install hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-install\n /Users/richard/.emacs.d/.local/straight/build-27.2/org/ob-comint hides /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/ob-comint\n\nStudy the output of `M-x list-load-path-shadows`.\n\n\n## `ox-hugo` defcustoms\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
org-hugo-section“posts”
org-hugo-use-code-for-kbdnil
org-hugo-preserve-fillingt
org-hugo-delete-trailing-wst
org-hugo-prefer-hyphen-in-tagst
org-hugo-allow-spaces-in-tagst
org-hugo-tag-processing-functions(org-hugo–tag-processing-fn-replace-with-spaces-maybe org-hugo–tag-processing-fn-replace-with-hyphens-maybe)
org-hugo-auto-set-lastmodnil
org-hugo-export-with-tocnil
org-hugo-export-with-section-numbersnil
org-hugo-front-matter-format“toml”
org-hugo-default-static-subdirectory-for-externals“ox-hugo”
org-hugo-external-file-extensions-allowed-for-copying(“jpg” “jpeg” “tiff” “png” “svg” “gif” “mp4” “pdf” “odt” “doc” “ppt” “xls” “docx” “pptx” “xlsx”)
org-hugo-date-format“%Y-%m-%dT%T%z”
org-hugo-paired-shortcodes“”
org-hugo-suppress-lastmod-period0.0
org-hugo-front-matter-format“toml”
\n\n" "\n" "** 加密算法\n" "与上反之" "Bob 发给 Alice 的消息" "," "1. Eb:session 加密秘钥,用于加密从 Bob 发给 Alice 的消息\n" "=" "a" "," "," ",即数据没有被篡改" "** \n" "**** DES\n" "," "常用算法 DES" "." "\\" "*" "文" "密" "\n" "加密算法是yi\n" "\n" "Alice, Bob,两个通讯实体\n" "我是我" "\n" "\n" "k" "\n" "* Authentication\n\n通信侧的身份认证\n\n网络中一个实体向另一个实体证明他的身份,服务端的身份认证,客户端的身份认证\n" "* Confidentiality\n\n数据的机密性\n\n* Integrity\n\n完整性\n\n*** Data integrity\n*** Originality\n*** timeliness\n" "\n" "#+FILETAGS: \n" "相关面试题" "@network" "FILETAGS" "1" "export {};\n" "/**\n * Least Recently Used cache\n * Get: O(1), hash 表\n * Put: O(1),需要维持顺序,最近最少使用的节点要删掉\n *\n * 双向链表\n */\nclass LRUCache1 {\n constructor(capacity) {\n // 当前元素数量\n // 容量上限\n this.capacity = capacity;\n /** @type {{[index: number]: LinkedListNode}} */\n this.cache = {};\n // 当前容量\n this.size = 0;\n\n // 伪头结点\n this.head = new LinkedListNode(0, 0);\n // 伪尾节点\n this.tail = new LinkedListNode(0, 0);\n\n // 调整指针指向\n this.head.next = this.tail;\n this.tail.prev = this.head;\n }\n\n /**\n * @param {number} key\n */\n keyExits(key) {\n return this.cache[key] !== undefined;\n }\n\n /**\n * @param {number} key\n */\n get(key) {\n if (!this.keyExits(key)) {\n return -1;\n }\n\n const node = this.cache[key];\n\n this.moveToHead(node);\n\n return node.val;\n }\n\n /**\n * @param {number} key\n * @param {number} value\n */\n put(key, value) {\n // key 存在,更新值\n if (this.keyExits(key)) {\n const node = this.cache[key];\n // 更新值\n node.val = value;\n // 调整位置,移动到头节点\n this.moveToHead(node);\n } else {\n const node = new LinkedListNode(key, value);\n\n if (this.size === this.capacity) {\n // 如果 cache 满了, 移除尾节点\n const node = this.removeTail();\n delete this.cache[node.key];\n this.size--;\n }\n\n this.addToHead(node);\n\n this.cache[key] = node;\n\n this.size++;\n }\n }\n\n /**\n * 移除尾节点\n */\n removeTail() {\n /** @type {LinkedListNode} */\n const node = this.tail.prev;\n this.removeNode(node);\n // 返回当前真实尾节点的引用\n return node;\n }\n\n /**\n * 移动当前节点到头结点\n * @param {LinkedListNode} node\n */\n moveToHead(node) {\n this.removeNode(node);\n this.addToHead(node);\n }\n\n /**\n * 调整节点的指针指向,使其从双链表中删除\n * @param {LinkedListNode} node\n */\n removeNode(node) {\n node.prev.next = node.next;\n node.next.prev = node.prev;\n }\n\n /**\n * 将节点添加到头结点\n * @param {LinkedListNode} node\n */\n addToHead(node) {\n // 先调整当前节点的指针\n node.prev = this.head;\n node.next = this.head.next;\n\n this.head.next.prev = node;\n this.head.next = node;\n }\n}\n\nclass LinkedListNode {\n /**\n * @param { number } key\n * @param { number } val\n **/\n constructor(key, val) {\n this.key = key;\n this.val = val;\n this.next = null;\n this.prev = null;\n }\n}\n\nexport {};\n" "\n" "\n" "-LRU" "\n** \n" "*** \n" "*" "*" "** Thread Model\n\n*** Playback attack\n\n** Confidentiality\n\n数据的机密性\n\n** Integrity\n\n完整性\n\n*** Data integrity\n*** Originality\n*** timeliness\n\n** Authentication\n\n端的身份认证\n\n网络中一个实体向另一个实体证明他的身份,服务端的身份认证,客户端的身份认证\n" "对" "不是绝对的,是相" "- 基于 CA\n" "*" "*" "里" "在" "装" "预" "," "根证书机构的公钥") Set Documentation List of killed text sequences. Since the kill ring is supposed to interact nicely with cut-and-paste facilities offered by window systems, use of this variable should interact nicely with interprogram-cut-function and interprogram-paste-function. The functions kill-new, kill-append, and current-kill are supposed to implement this interaction; you may want to use them instead of manipulating the kill ring directly. View in manual References References in simple.el.gz: (defvar kill-ring ...) 1 reference (defun kill-new ...) 8 references (defun kill-append ...) 1 reference (defun current-kill ...) 4 references Find all references Debugging Forget Source Code ;; Defined in /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/simple.el.gz ;;;; The kill ring data structure. (defvar kill-ring nil "List of killed text sequences. Since the kill ring is supposed to interact nicely with cut-and-paste facilities offered by window systems, use of this variable should interact nicely with `interprogram-cut-function' and `interprogram-paste-function'. The functions `kill-new', `kill-append', and `current-kill' are supposed to implement this interaction; you may want to use them instead of manipulating the kill ring directly.") Symbol Properties variable-documentation 2681201

Thank you

ladieman217 commented 2 years ago

It's weird, it works again, but I don't know why it hangs a long time and without responding

kaushalmodi commented 2 years ago

Hello,

It looks like you are using the development version of Org mode installed from its git repo.

  1. If you haven't updated Org mode in a while, please do the update and then check if that issue is still there.
  2. If the issue is still there, see if this workaround helps: https://github.com/kaushalmodi/ox-hugo/discussions/551#discussioncomment-2104347.

If the above workaround works for you too, let me know. We can close this issue and continue the discussion in https://github.com/kaushalmodi/ox-hugo/discussions/551.

kaushalmodi commented 2 years ago

I tried using your example post and exporting it .. and it finished in 0.52 seconds

[ox-hugo] Exporting ‘网络安全’ (test.org)
Wrote /home/kmodi/stow/pub_dotfiles/emacs/dot-emacs.d/elisp/ox-hugo/test/site/content/posts/test.md
exec time: 0.517660107

Unfortunately, if this is the issue caused due to org-element caching enabled on the Org built from the main branch, that issue is difficult to reproduce.

ladieman217 commented 2 years ago

Thank you very much, I'll dig deeper next time it hangs there. At least it works again now.