profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/kaushalmodi/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Kaushal Modi kaushalmodi @analogdevicesinc North Carolina, USA https://scripter.co Command-line, emacs, Org mode, hugo, Nim

jwiegley/use-package 3674

A use-package declaration for simplifying your .emacs

kaushalmodi/.emacs.d 233

My emacs configuration

kaushalmodi/eless 101

A Better 'less' - A bash script that loads emacs with minimal view-mode config - Created with Org mode

kaushalmodi/hello_musl 60

NimScript (config.nims) for building a static binary using Nim + musl + pcre + libressl/openssl

kaushalmodi/custom_uvm_report_server 22

Customized UVM Report Server

hl-anything/hl-anything-emacs 12

Emacs - Highlight thing at point, selection and more

glen-dai/highlight-global 11

A highlight package for EMACS across all buffers/files.

kaushalmodi/elnim 5

Collection of Nim procs/templates/macros which can serve as "phew! I am glad Nim has this!" for Emacs/Emacs-Lisp/Lisp enthusiasts.

kaushalmodi/highlight-global 2

A highlight package for EMACS across all buffers/files.

pull request commentkaushalmodi/ox-hugo

Handle backslash escapes according to CommonMark Spec

@lizhuohua Thanks for this PR and also inadvertently fixing that bug seen in existing tests as well!

lizhuohua

comment created time in 11 days

push eventkaushalmodi/ox-hugo

Li Zhuohua

commit sha 298cd528478d91df0bbfb2dfe5842b0a8cfb7237

Handle backslash eacapes according to CommonMark Spec Fixes #458

view details

Li Zhuohua

commit sha f0357fa7449cc8baecee588dab7dcf9ea243f3b4

Fix breaking tests and add new tests for backslash escaping

view details

push time in 11 days

PR merged kaushalmodi/ox-hugo

Handle backslash escapes according to CommonMark Spec

Hi, I refactored function org-blackfriday-escape-chars-in-equation according to the specification of CommonMark. Now it should be able to handle backslashes properly.

Also, according to the spec, backslashes before any ASCII punctuation character are escaped. This is useful in Latex, for example, \, means "thin space", and \; means "thick space".

This should fix #458

One issue is that this commit may break the support of Blackfriday (I didn't test it). But considering that most people are using Goldmark now, I think this should be OK.

+93 -55

5 comments

4 changed files

lizhuohua

pr closed time in 11 days

issue closedkaushalmodi/ox-hugo

Double backslashes (\\) are not properly escaped in Latex

<!-- Use the template below when reporting bugs.

Please, make sure that you're running the latest Ox-Hugo (from Melpa or git head). -->

When a Latex expression contains double backslashes (\\), the output markdown is not properly escaped, for example the org file:

\[\sum_{\substack{0<i<m\\0<j<n}}\]

Actual Behavior

The generated markdown is \\[\sum\_{\substack{0<i<m\\0<j<n}}\\]

Then the markdown parser will generate HTML like this \[\sum_{\substack{0&lt;i&lt;m\0&lt;j&lt;n}}\]

This is rendered by MathJax like this:

image

Expected Behavior

The double backslashes \\ should be escaped as \\\\, so the generated markdown should be \\[\sum\_{\substack{0<i<m\\\\0<j<n}}\\]

The HTML should be \[\sum_{\substack{0&lt;i&lt;m\\0&lt;j&lt;n}}\]

The rendered math should be:

image

How to Reproduce the Issue

Export the example org file into markdown, and rendered using MathJax

Example Org File

\[\sum_{\substack{0<i<m\\0<j<n}}\]

Generated Markdown File or Error

\\[\sum\_{\substack{0<i<m\\0<j<n}}\\]

Ox-Hugo Debug Information

<!--

(Step 1) Run M-x org-hugo-debug-info.

 *That will copy the debug info in Markdown format to the kill ring.*
 So do *not* manually do any other kill (copy/cut) operation after that!

See step 2 below. -->

<details> <summary>Debug Info</summary>

<!-- (Step 2) Paste the Markdown contents (copied to kill-ring in Step 1 above) after </summary> and before </details> below. -->

Debug information for ox-hugo

Emacs Version

GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.29, cairo version 1.16.0)
 of 2021-08-02 (commit b72f88518b89560accf740a4548368863e6238e0)

Org Version

Org mode version 9.4.6 (9.4.6-11-g1ee52c-elpa @ /home/li/.emacs.d/elpa/28.0/develop/org-20210726/)

Hugo Version

hugo v0.86.1+extended linux/amd64 BuildDate=unknown

Org load-path shadows

Warning: Possible mixed installation of Org

/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-io hides /usr/share/emacs/28.0.50/lisp/org/ob-io
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-colview hides /usr/share/emacs/28.0.50/lisp/org/org-colview
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-screen hides /usr/share/emacs/28.0.50/lisp/org/ob-screen
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-table hides /usr/share/emacs/28.0.50/lisp/org/ob-table
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-maxima hides /usr/share/emacs/28.0.50/lisp/org/ob-maxima
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ox-man hides /usr/share/emacs/28.0.50/lisp/org/ox-man
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ox-org hides /usr/share/emacs/28.0.50/lisp/org/ox-org
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-lilypond hides /usr/share/emacs/28.0.50/lisp/org/ob-lilypond
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-footnote hides /usr/share/emacs/28.0.50/lisp/org/org-footnote
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ox-latex hides /usr/share/emacs/28.0.50/lisp/org/ox-latex
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-python hides /usr/share/emacs/28.0.50/lisp/org/ob-python
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-macro hides /usr/share/emacs/28.0.50/lisp/org/org-macro
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-mobile hides /usr/share/emacs/28.0.50/lisp/org/org-mobile
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-org hides /usr/share/emacs/28.0.50/lisp/org/ob-org
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-R hides /usr/share/emacs/28.0.50/lisp/org/ob-R
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-ref hides /usr/share/emacs/28.0.50/lisp/org/ob-ref
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ox-publish hides /usr/share/emacs/28.0.50/lisp/org/ox-publish
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-css hides /usr/share/emacs/28.0.50/lisp/org/ob-css
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-processing hides /usr/share/emacs/28.0.50/lisp/org/ob-processing
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-habit hides /usr/share/emacs/28.0.50/lisp/org/org-habit
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ol-eww hides /usr/share/emacs/28.0.50/lisp/org/ol-eww
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-macs hides /usr/share/emacs/28.0.50/lisp/org/org-macs
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-J hides /usr/share/emacs/28.0.50/lisp/org/ob-J
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-calc hides /usr/share/emacs/28.0.50/lisp/org/ob-calc
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-clock hides /usr/share/emacs/28.0.50/lisp/org/org-clock
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ol-bibtex hides /usr/share/emacs/28.0.50/lisp/org/ol-bibtex
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ox-texinfo hides /usr/share/emacs/28.0.50/lisp/org/ox-texinfo
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-makefile hides /usr/share/emacs/28.0.50/lisp/org/ob-makefile
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-js hides /usr/share/emacs/28.0.50/lisp/org/ob-js
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ol-w3m hides /usr/share/emacs/28.0.50/lisp/org/ol-w3m
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-forth hides /usr/share/emacs/28.0.50/lisp/org/ob-forth
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-attach-git hides /usr/share/emacs/28.0.50/lisp/org/org-attach-git
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-scheme hides /usr/share/emacs/28.0.50/lisp/org/ob-scheme
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-eval hides /usr/share/emacs/28.0.50/lisp/org/ob-eval
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-faces hides /usr/share/emacs/28.0.50/lisp/org/org-faces
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ol hides /usr/share/emacs/28.0.50/lisp/org/ol
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-protocol hides /usr/share/emacs/28.0.50/lisp/org/org-protocol
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-hledger hides /usr/share/emacs/28.0.50/lisp/org/ob-hledger
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-emacs-lisp hides /usr/share/emacs/28.0.50/lisp/org/ob-emacs-lisp
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-attach hides /usr/share/emacs/28.0.50/lisp/org/org-attach
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-mscgen hides /usr/share/emacs/28.0.50/lisp/org/ob-mscgen
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-groovy hides /usr/share/emacs/28.0.50/lisp/org/ob-groovy
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-src hides /usr/share/emacs/28.0.50/lisp/org/org-src
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-ruby hides /usr/share/emacs/28.0.50/lisp/org/ob-ruby
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-eshell hides /usr/share/emacs/28.0.50/lisp/org/ob-eshell
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-C hides /usr/share/emacs/28.0.50/lisp/org/ob-C
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-sass hides /usr/share/emacs/28.0.50/lisp/org/ob-sass
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-shen hides /usr/share/emacs/28.0.50/lisp/org/ob-shen
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob hides /usr/share/emacs/28.0.50/lisp/org/ob
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-shell hides /usr/share/emacs/28.0.50/lisp/org/ob-shell
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-lisp hides /usr/share/emacs/28.0.50/lisp/org/ob-lisp
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-sql hides /usr/share/emacs/28.0.50/lisp/org/ob-sql
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-timer hides /usr/share/emacs/28.0.50/lisp/org/org-timer
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-goto hides /usr/share/emacs/28.0.50/lisp/org/org-goto
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-plot hides /usr/share/emacs/28.0.50/lisp/org/org-plot
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-plantuml hides /usr/share/emacs/28.0.50/lisp/org/ob-plantuml
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-capture hides /usr/share/emacs/28.0.50/lisp/org/org-capture
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-feed hides /usr/share/emacs/28.0.50/lisp/org/org-feed
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-gnuplot hides /usr/share/emacs/28.0.50/lisp/org/ob-gnuplot
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org hides /usr/share/emacs/28.0.50/lisp/org/org
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-lua hides /usr/share/emacs/28.0.50/lisp/org/ob-lua
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-entities hides /usr/share/emacs/28.0.50/lisp/org/org-entities
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-fortran hides /usr/share/emacs/28.0.50/lisp/org/ob-fortran
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-ditaa hides /usr/share/emacs/28.0.50/lisp/org/ob-ditaa
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-stan hides /usr/share/emacs/28.0.50/lisp/org/ob-stan
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-vala hides /usr/share/emacs/28.0.50/lisp/org/ob-vala
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ox hides /usr/share/emacs/28.0.50/lisp/org/ox
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-dot hides /usr/share/emacs/28.0.50/lisp/org/ob-dot
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ox-icalendar hides /usr/share/emacs/28.0.50/lisp/org/ox-icalendar
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ox-beamer hides /usr/share/emacs/28.0.50/lisp/org/ox-beamer
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-archive hides /usr/share/emacs/28.0.50/lisp/org/org-archive
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-haskell hides /usr/share/emacs/28.0.50/lisp/org/ob-haskell
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-tangle hides /usr/share/emacs/28.0.50/lisp/org/ob-tangle
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ox-ascii hides /usr/share/emacs/28.0.50/lisp/org/ox-ascii
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-agenda hides /usr/share/emacs/28.0.50/lisp/org/org-agenda
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ol-gnus hides /usr/share/emacs/28.0.50/lisp/org/ol-gnus
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-list hides /usr/share/emacs/28.0.50/lisp/org/org-list
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-mouse hides /usr/share/emacs/28.0.50/lisp/org/org-mouse
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-id hides /usr/share/emacs/28.0.50/lisp/org/org-id
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-lint hides /usr/share/emacs/28.0.50/lisp/org/org-lint
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-asymptote hides /usr/share/emacs/28.0.50/lisp/org/ob-asymptote
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-version hides /usr/share/emacs/28.0.50/lisp/org/org-version
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-perl hides /usr/share/emacs/28.0.50/lisp/org/ob-perl
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-matlab hides /usr/share/emacs/28.0.50/lisp/org/ob-matlab
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ol-rmail hides /usr/share/emacs/28.0.50/lisp/org/ol-rmail
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ol-info hides /usr/share/emacs/28.0.50/lisp/org/ol-info
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-abc hides /usr/share/emacs/28.0.50/lisp/org/ob-abc
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-num hides /usr/share/emacs/28.0.50/lisp/org/org-num
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ox-html hides /usr/share/emacs/28.0.50/lisp/org/ox-html
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-indent hides /usr/share/emacs/28.0.50/lisp/org/org-indent
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-comint hides /usr/share/emacs/28.0.50/lisp/org/ob-comint
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ox-odt hides /usr/share/emacs/28.0.50/lisp/org/ox-odt
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-pcomplete hides /usr/share/emacs/28.0.50/lisp/org/org-pcomplete
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-octave hides /usr/share/emacs/28.0.50/lisp/org/ob-octave
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-core hides /usr/share/emacs/28.0.50/lisp/org/ob-core
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ox-md hides /usr/share/emacs/28.0.50/lisp/org/ox-md
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-table hides /usr/share/emacs/28.0.50/lisp/org/org-table
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-ledger hides /usr/share/emacs/28.0.50/lisp/org/ob-ledger
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-picolisp hides /usr/share/emacs/28.0.50/lisp/org/ob-picolisp
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-refile hides /usr/share/emacs/28.0.50/lisp/org/org-refile
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ol-docview hides /usr/share/emacs/28.0.50/lisp/org/ol-docview
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ol-mhe hides /usr/share/emacs/28.0.50/lisp/org/ol-mhe
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-compat hides /usr/share/emacs/28.0.50/lisp/org/org-compat
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-element hides /usr/share/emacs/28.0.50/lisp/org/org-element
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-ctags hides /usr/share/emacs/28.0.50/lisp/org/org-ctags
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-keys hides /usr/share/emacs/28.0.50/lisp/org/org-keys
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-inlinetask hides /usr/share/emacs/28.0.50/lisp/org/org-inlinetask
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-duration hides /usr/share/emacs/28.0.50/lisp/org/org-duration
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-sqlite hides /usr/share/emacs/28.0.50/lisp/org/ob-sqlite
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ol-eshell hides /usr/share/emacs/28.0.50/lisp/org/ol-eshell
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-awk hides /usr/share/emacs/28.0.50/lisp/org/ob-awk
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-ebnf hides /usr/share/emacs/28.0.50/lisp/org/ob-ebnf
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-lob hides /usr/share/emacs/28.0.50/lisp/org/ob-lob
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-datetree hides /usr/share/emacs/28.0.50/lisp/org/org-datetree
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ol-irc hides /usr/share/emacs/28.0.50/lisp/org/ol-irc
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-coq hides /usr/share/emacs/28.0.50/lisp/org/ob-coq
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-clojure hides /usr/share/emacs/28.0.50/lisp/org/ob-clojure
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-install hides /usr/share/emacs/28.0.50/lisp/org/org-install
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-crypt hides /usr/share/emacs/28.0.50/lisp/org/org-crypt
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ol-bbdb hides /usr/share/emacs/28.0.50/lisp/org/ol-bbdb
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-sed hides /usr/share/emacs/28.0.50/lisp/org/ob-sed
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-ocaml hides /usr/share/emacs/28.0.50/lisp/org/ob-ocaml
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-tempo hides /usr/share/emacs/28.0.50/lisp/org/org-tempo
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-java hides /usr/share/emacs/28.0.50/lisp/org/ob-java
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-exp hides /usr/share/emacs/28.0.50/lisp/org/ob-exp
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/ob-latex hides /usr/share/emacs/28.0.50/lisp/org/ob-latex
/home/li/.emacs.d/elpa/28.0/develop/org-20210726/org-loaddefs hides /usr/share/emacs/28.0.50/lisp/org/org-loaddefs

Study the output of M-x list-load-path-shadows.

ox-hugo defcustoms

<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">

<colgroup> <col class="org-left" />

<col class="org-left" /> </colgroup> <tbody> <tr> <td class="org-left">org-hugo-section</td> <td class="org-left">"post"</td> </tr>

<tr> <td class="org-left">org-hugo-use-code-for-kbd</td> <td class="org-left">nil</td> </tr>

<tr> <td class="org-left">org-hugo-preserve-filling</td> <td class="org-left">t</td> </tr>

<tr> <td class="org-left">org-hugo-delete-trailing-ws</td> <td class="org-left">t</td> </tr>

<tr> <td class="org-left">org-hugo-prefer-hyphen-in-tags</td> <td class="org-left">t</td> </tr>

<tr> <td class="org-left">org-hugo-allow-spaces-in-tags</td> <td class="org-left">t</td> </tr>

<tr> <td class="org-left">org-hugo-tag-processing-functions</td> <td class="org-left">(org-hugo–tag-processing-fn-replace-with-spaces-maybe org-hugo–tag-processing-fn-replace-with-hyphens-maybe)</td> </tr>

<tr> <td class="org-left">org-hugo-auto-set-lastmod</td> <td class="org-left">nil</td> </tr>

<tr> <td class="org-left">org-hugo-export-with-toc</td> <td class="org-left">nil</td> </tr>

<tr> <td class="org-left">org-hugo-export-with-section-numbers</td> <td class="org-left">nil</td> </tr>

<tr> <td class="org-left">org-hugo-front-matter-format</td> <td class="org-left">"toml"</td> </tr>

<tr> <td class="org-left">org-hugo-default-static-subdirectory-for-externals</td> <td class="org-left">"ox-hugo"</td> </tr>

<tr> <td class="org-left">org-hugo-external-file-extensions-allowed-for-copying</td> <td class="org-left">("jpg" "jpeg" "tiff" "png" "svg" "gif" "mp4" "pdf" "odt" "doc" "ppt" "xls" "docx" "pptx" "xlsx")</td> </tr>

<tr> <td class="org-left">org-hugo-date-format</td> <td class="org-left">"%Y-%m-%dT%T%z"</td> </tr>

<tr> <td class="org-left">org-hugo-paired-shortcodes</td> <td class="org-left">""</td> </tr>

<tr> <td class="org-left">org-hugo-langs-no-descr-in-code-fences</td> <td class="org-left">nil</td> </tr>

<tr> <td class="org-left">org-hugo-suppress-lastmod-period</td> <td class="org-left">0.0</td> </tr>

<tr> <td class="org-left">org-hugo-front-matter-format</td> <td class="org-left">"toml"</td> </tr> </tbody> </table>

</details>

closed time in 11 days

lizhuohua

pull request commentkaushalmodi/ox-hugo

Handle backslash escapes according to CommonMark Spec

Thanks for that analysis!

Can you please fix the breaking tests and add new tests specific to your usecase as well?

lizhuohua

comment created time in 13 days

pull request commentkaushalmodi/ox-hugo

Handle backslash escapes according to CommonMark Spec

This PR is failing the existing LaTeX escaping tests. Can you review them?

lizhuohua

comment created time in 13 days

pull request commentkaushalmodi/ox-hugo

Handle backslash escapes according to CommonMark Spec

@lizhuohua Can you also please add new tests to the escaping tests in all_posts.org?

lizhuohua

comment created time in 13 days

issue commentnim-lang/Nim

Trying to run the build_all.sh script with a nimble package install throws error

Ref https://github.com/nim-lang/Nim/pull/18810 @narimiran

jyapayne

comment created time in 14 days

issue commentnim-lang/Nim

Trying to run the build_all.sh script with a nimble package install throws error

Recently after an update on nim devel, I was forced to delete my ~/.nimble and I had to reinstall all the nimble packages. This time, I noticed that all the package dirs in .nimble got suffixed with some sort of hash.

But now future builds of nim are failing with the same error reported above.

Nim Compiler Version 1.5.1 [Linux: amd64]
Compiled at 2021-09-09
Copyright (c) 2006-2021 by Andreas Rumpf

git hash: a896f9f19eec221b8651849297bdbc8be72b00af
active boot switches: -d:release

Error:

cmd: rm -f bin/nim

cmd: cp bin/nim_csources_9a7f751d23c49c75a0b6f63a234c575dc0df7231 bin/nim

cmd: bin/nim_csources_9a7f751d23c49c75a0b6f63a234c575dc0df7231 -v
Nim Compiler Version 1.0.11 [Linux: amd64]
Compiled at 2020-12-21
Copyright (c) 2006-2019 by Andreas Rumpf

git hash: 19440baa807bbda58290ac9d491c9aa8a2bea2fa
active boot switches: -d:release -d:danger

cmd: bin/nim c --skipUserCfg --skipParentCfg --hints:off koch
/home/kmodi/downloads/git/Nim/config/nim.cfg(51, 1) Error: invalid package name: /home/kmodi/.nimble/pkgs/cligen-1.5.18-eeb4c230d76e328c00f1687f7da1f577cb485469
jyapayne

comment created time in 14 days

push eventkaushalmodi/ox-hugo

Kaushal Modi

commit sha 1b8f2627cd63ac21b84c5abe3d5b607bc778670a

Remove dead link

view details

push time in 17 days

issue commentkaushalmodi/ox-hugo

Leading `/` in img leads to broken images if the website's has relative path

Hello, this has been a known limitation with the default figure shortcode that ships with Hugo. See https://github.com/gohugoio/hugo/issues/4562#issuecomment-378314838 where I describe this issue in detail with a proposed modification of the figure shortcode. If you use that modified shortcode in your site layout, this issue will get resolved.

bphenriques

comment created time in 18 days

issue commentrussross/blackfriday

Disable only smartParens

I am not using blackfriday any more as Hugo switched away from this package.

kaushalmodi

comment created time in 19 days

push eventkaushalmodi/nim-systemverilog-dpic

Kaushal Modi

commit sha 371bb9c6da12c484c355e97c9be71395fc0fcd25

Add example of SV/DPI-C async socket communication using Nim Both client and server are implemented in Nim. Fixes https://github.com/kaushalmodi/nim-systemverilog-dpic/issues/2

view details

push time in a month

issue closedkaushalmodi/nim-systemverilog-dpic

Convert the Amiq Python/C/SV socket example to Nim

  • https://www.amiq.com/consulting/2019/03/22/how-to-connect-systemverilog-with-python/
  • https://github.com/amiq-consulting/amiq_blog/tree/master/amiq_sv_c_python_how_to_connect_systemverilog_with_python

closed time in a month

kaushalmodi

issue commentmyTerminal/world-of-emacs

Convert to Org?

Yes. I didn't get time to work on this afterall.

Thanks for checking.

kaushalmodi

comment created time in a month

issue closedmyTerminal/world-of-emacs

Convert to Org?

Reading through few parts of this great write-up, I wondered if you'd like to convert this to Org, of course if you are comfortable editing Org.

Few reasons:

  • Users can clone this repo, and read/search from the convenience of org-mode.
    • To help with that, it would be even more awesome to combine the whole thing into a single Org file.
  • The Org markup also will be rendered fine in GitHub (even Gitlab too).
  • This can become a wonderful demonstration of Org. Eventually it's World of Emacs :)
  • My insidious plan to then convert that Org file to a little static website using ox-hugo + Hugo.

If you are up for it, I can help with the Markdown -> 1 Org file conversion.

closed time in a month

kaushalmodi

Pull request review commentStefanSalewski/NimProgrammingBook

Minor grammar & style corrections.

 While you can learn high level concepts well with Python and you get useful resu you learn not much about the internal working of computers. So you may never understand why your code is slow and consumes so much resources, and you will have no idea how to improve the program or how you could run-it successfully on restricted hardware.  -Its like learning-driving a car without any knowledge about how a combustion engine, the-transmission or the breaks really works. Nim has none of these restrictions, as+it successfully on restricted hardware.++Its like learning to drive a car, without any knowledge about how a combustion engine, the

"It's" or "It is"

marek-lach

comment created time in a month

PullRequestReviewEvent

issue commentkaushalmodi/hugo-bare-min-theme

Replace taxonomy with pages

Sorry, your question is still not clear to me. I am not familiar with "widgets" in Hugo.

May you looking to modify this template and not list.html?: https://github.com/kaushalmodi/hugo-bare-min-theme/blob/master/layouts/_default/terms.html

Also reach out on the Hugo Discourse forum for Hugo-specific questions. The benefit there is that there will be a lot of active Hugo users who might answer your question quicker and more accurately.

salehmu

comment created time in a month

issue commentkaushalmodi/hugo-bare-min-theme

Replace taxonomy with pages

What is a "page widget"? Also note that this is a "bare bones" theme. It was designed to understand the inner variables in Hugo.

salehmu

comment created time in a month

issue commentkaushalmodi/ox-hugo

Add org-cite for exporting citations (feature request)

@mclearc Thanks for adding your input! It would be awesome if you can add a contribution to the ox-hugo manual on oc setup, or may be even a blog post that I can link in the manual. Thanks again!

mclearc

comment created time in a month

issue commentkaushalmodi/ox-hugo

org-id parse error filename

@alexkehayias

Quickly looking at your PR in your fork, it's creating a separate case statement for "id". Wouldn't that break the existing org-id processing done in https://github.com/kaushalmodi/ox-hugo/blob/6ec3d054ddadbca1f5effb961c1db583e377ca35/ox-hugo.el#L2081-L2089 ?

If you open a PR in this repo, we can see if all the tests are still passing using that code change. Also, please add new tests related to this code change in your PR.

@coldnight I am copying you in this issue as you recently submitted a PR to improve the org-id handling ( https://github.com/kaushalmodi/ox-hugo/pull/453 ). May be you can comment on the change that @alexkehayias is proposing.

GTrunSec

comment created time in 2 months

issue commentkaushalmodi/ox-hugo

org-hugo seems to always evaluate src blocks, even when `:eval never-export` is set

Hello,

ox-hugo does not control this behavior. The :eval handling is done by lower level Org libraries, most likely ob-core.el or a related library.

Here's an even more minimal example:

#+property: header-args :comments link :noweb never-export :eval never-export

* Heading
#+begin_src emacs-lisp
(global-auto-revert-mode 0)
(global-auto-revert-mode 1)
#+end_src

If you export this using even the ascii exporter (C-c C-e t A), you will see this in the *Messages* buffer:

org-babel-exp process emacs-lisp at position 90...

Also, I have seen this behavior for a while. I think that Org is doing some processing, but the blocks are actually not evaluated. You may want to post this question on the Org mailing list ( emacs-orgmode@gnu.org ) to learn more about this.

telotortium

comment created time in 2 months

push eventkaushalmodi/ox-hugo

Kaushal Modi

commit sha 6ec3d054ddadbca1f5effb961c1db583e377ca35

users.toml: Remove dead link

view details

push time in 2 months

issue commentkaushalmodi/ox-hugo

How to trace Unable to resolve link; aborting: ID_LINK

@RidaAyed Is this a recent regression in behavior after ox-hugo update?

Can you provide a minimal Org file example where this issue can be reproduced?

RidaAyed

comment created time in 2 months

issue commentkaushalmodi/ox-hugo

problem with pandoc citations

Thanks for the updated logs. To better track this, can you open a different issue specific to this regression in pandoc 2.14?

I believe this particular issue should have been long closed (I'll close it once you create a new issue).

Please post a test Org file and expected Markdown. I will not be able to get to fixing it right now, but it will still be good to track this regression separately.

mclearc

comment created time in 2 months

issue commentkaushalmodi/ox-hugo

problem with pandoc citations

@HaoZeke Can you confirm that this issue doesn't happen if you revert to pandoc 2.13?

Note that the ox-hugo test suite was last updated to work with pandoc 2.11.4 though (https://ox-hugo.scripter.co/doc/requirements/).

mclearc

comment created time in 2 months

issue commentkaushalmodi/ox-hugo

When exporting ox-hugo to markdown, the line ends with Chinese symbols or Chinese characters, but does not wrap. How can I solve this problem?

Hello,

The unwrapping was done intentional as a result of this issue: https://emacs-china.org/t/ox-hugo-auto-fill-mode-markdown/9547/5

The code responsible for this behavior is here:

https://github.com/kaushalmodi/ox-hugo/blob/8345ceb90ff1314d598c6b67ba6ee7616e2b0bc4/ox-hugo.el#L2548-L2556

I do not read or write Mandarin. So a PR to improve this behavior is welcome. You may even ping the original posters on that emacs-china.org thread to get ideas on how to improve this behavior.

iT-Boyer

comment created time in 2 months

push eventkaushalmodi/ox-hugo

wanghui

commit sha 92cc050a99b5e97d968f2b0b529078712526abb0

feat: treat external id links to normal posts

view details

wanghui

commit sha dc24a0c2ca9118b7f1bb8b3404076f96fc251ebe

feat: add anchor to external id links that point to headline

view details

wanghui

commit sha 2fd5e6b7cc60962fc0aa748327df56740408c25c

test: add external id link test org files & fix

view details

wanghui

commit sha 9ddb4bb1b00a6dfb532005ea6e234020f1f6d8db

fix: update org-id-locations if it's nil or empty Note: The `org-id-locations` stores in ~/.emacs.d/.org-id-locations, but there is no ~/.emacs.d exists when GitHub Workflow is running, and that cause read & update org-id-locations failed. So add an empty .emacs.d directory in test/ and then point the HOME to test/ in Makefile. Also use `hash-table-count' to instead `hash-table-empty-p' because `hash-table-empty-p' is not available in Emacs 24.5.

view details

wanghui

commit sha db8bd9f64e6e13980017ae8639c0e78f4438f180

fix: external id links connected two posts in different hugo_section test: add org files to test external id links between different hugo_section

view details

wanghui

commit sha 483a755aff6b0099a4e1fff34adb934e35b5ee8a

fix: invoke kill-buffer after org-id-goto to avoid Fundamental buffers If we don't kill the buffer after org-id-goto, and then the `org-id-goto' will then goto the previous buffer we openned. The buffer's major mode will be Fundamental.

view details

Kaushal Modi

commit sha 8345ceb90ff1314d598c6b67ba6ee7616e2b0bc4

Merge pull request #453 from coldnight/external-id-links feat: treat external id links to normal posts and support point to headline

view details

push time in 2 months