Created
November 15, 2025 01:12
-
-
Save chuckwagoncomputing/35f079e6e79e6e969ff80803c595680e to your computer and use it in GitHub Desktop.
rusEFI wiki2 to md link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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