Whitespace trimming using ~#+header: :trim-pre t :trim-post t~ before special blocks.
This is the test site for the
ox-hugo
package for Emacs/Org-mode.
It is updated automatically after each commit to the
ox-hugo
repo.
It was last updated on Oct 05, 2024 21:20 UTC.
ox-hugo
.Image in homepage branch bundle:
Whitespace trimming using ~#+header: :trim-pre t :trim-post t~ before special blocks.
Org reference Cases # Default new line number start # Org source # #+begin_src emacs-lisp -n ;; this will export with line number 1 (default) (message "This is line 2") #+end_src Output # 1 2 ;; this will export with line number 1 (default) (message "This is line 2") Specify new line number start # Org source # #+begin_src emacs-lisp -n 20 ;; this will export with line number 20 (message "This is line 21") #+end_src Output # 20 21 ;; this will export with line number 20 (message "This is line 21") Default continued line numbers # Org source # #+begin_src emacs-lisp +n ;; This will be listed as line 22 (message "This is line 23") #+end_src Output # 22 23 ;; This will be listed as line 22 (message "This is line 23") Specify continued line numbers jump # Org source # #+begin_src emacs-lisp +n 10 ;; This will be listed as line 33 (message "This is line 34") #+end_src Output # 33 34 ;; This will be listed as line 33 (message "This is line 34") Specifying linenos parameter # (message "This is line 1") (message "This is line 2") (message "This is line 3") 30(message "This is line 30") 31(message "This is line 31") 32(message "This is line 32")
Org reference Hugo highlight shortcode with line numbers Cases # Default new line number start # Org source # #+begin_src emacs-lisp -n ;; this will export with line number 1 (default) (message "This is line 2") #+end_src Output # 1 2 ;; this will export with line number 1 (default) (message "This is line 2") Specify new line number start # Org source # #+begin_src emacs-lisp -n 20 ;; this will export with line number 20 (message "This is line 21") #+end_src Output # 20 21 ;; this will export with line number 20 (message "This is line 21") Default continued line numbers # Org source # #+begin_src emacs-lisp +n ;; This will be listed as line 22 (message "This is line 23") #+end_src Output # 22 23 ;; This will be listed as line 22 (message "This is line 23") Specify continued line numbers jump # Org source # #+begin_src emacs-lisp +n 10 ;; This will be listed as line 33 (message "This is line 34") #+end_src Output # 33 34 ;; This will be listed as line 33 (message "This is line 34") Specifying linenos parameter # (message "This is line 1") (message "This is line 2") (message "This is line 3") 30(message "This is line 30") 31(message "This is line 31") 32(message "This is line 32")
Without line numbers # Org source # #+begin_src emacs-lisp :hl_lines 1,3-5 (message "This is line 1") (message "This is line 2") (message "This is line 3") (message "This is line 4") (message "This is line 5") (message "This is line 6") #+end_src Output # (message "This is line 1") (message "This is line 2") (message "This is line 3") (message "This is line 4") (message "This is line 5") (message "This is line 6") Above highlighting might look weird as the highlighting spans the full page/container width.
Without line numbers # Org source # #+begin_src emacs-lisp :hl_lines 1,3-5 (message "This is line 1") (message "This is line 2") (message "This is line 3") (message "This is line 4") (message "This is line 5") (message "This is line 6") #+end_src Output # (message "This is line 1") (message "This is line 2") (message "This is line 3") (message "This is line 4") (message "This is line 5") (message "This is line 6") Above highlighting might look weird as the highlighting spans the full page/container width.
Org reference Default new line number start # 1 2 line 1 line 2 An example without -n: foo bar Specify new line number start # 20 21 line 20 line 21 Default continued line numbers # 22 23 line 22 line 23 Specify continued line numbers jump # 33 34 line 33 line 34 Specifying linenos parameter # In the below block, :linenos false switch was added to the example block header.
Some text. This is an example Line 2 Line 3 Some more text. 1 2 3 This is an example Line 2 Line 3
Some text. This is an example Line 2 Line 3 Some more text. 1 2 3 This is an example Line 2 Line 3
Test auto-translated Bibliography heading insertion for citations
using oc.el
+ citeproc.el
.
Test citation CSL using oc.el
+ citeproc.el
.
hugo-bare-min-theme
+ Hugo 0.101.0
(commit
466fa43c16709b4483689930a4f9ac8add5c9f66)
.
This site is powered by Netlify.