Skip to content

Instantly share code, notes, and snippets.

@chuckwagoncomputing
Created November 15, 2025 01:12
Show Gist options
  • Select an option

  • Save chuckwagoncomputing/35f079e6e79e6e969ff80803c595680e to your computer and use it in GitHub Desktop.

Select an option

Save chuckwagoncomputing/35f079e6e79e6e969ff80803c595680e to your computer and use it in GitHub Desktop.
rusEFI wiki2 to md link
(defun wiki-to-link ()
(interactive)
(when
(re-search-forward
"https:\/\/github.com\/rusefi\/rusefi\/wiki\/\\(\\([^ #\n]*\\)\\(#[^ \n]*\\)?\\)"
nil t)
(let* ((path (match-string 1))
(page (match-string 2))
(pagef (string-replace "-" " " page))
(link (concat "[" pagef "](" path ")")))
(replace-match "" t t)
(insert link))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment