Part 2 of the earlier fix for quote blocks with nested code blocks

Now the number of backticks can be even greater than 3; so fix that
regexp to match that.

https://github.com/kaushalmodi/ox-hugo/issues/98
master
Kaushal Modi 8 years ago
parent 463ad47931
commit a04b632db0
  1. 2
      ox-hugo.el

@ -1286,7 +1286,7 @@ channel."
;; *Note* that this issue does NOT exist if using Chroma,
;; which is the default syntax highlighter after Hugo
;; v0.28.
(setq ret (replace-regexp-in-string (concat "\\`\\(```\\)" lang) "\\1" ret)))
(setq ret (replace-regexp-in-string (concat "\\`\\(```+\\)" lang) "\\1" ret)))
ret))
;; 2. If number-lines is non-nil, or
;; 3. If hl-lines is non-nil, or

Loading…
Cancel
Save