Post AYkkO1vR2jpuefDCwS by draxil@social.linux.pizza
 (DIR) More posts by draxil@social.linux.pizza
 (DIR) Post #AYiL3vjdSkSCUh5l68 by galdor@emacs.ch
       2023-08-14T07:17:29Z
       
       0 likes, 0 repeats
       
       In Emacs, markdown-mode uses a regular expression to highlight URIs. Infortunately it is incorrect and will happily include extra characters which are not part of the URI such as a final full stop in a sentence after a final port number.Fortunately it can be configured, so we can reuse browse-url-button-regexp which is much more precise:(setq markdown-regex-uri (concat "\\(" browse-url-button-regexp "\\)"))As often with Emacs, one can work around issues very quickly.
       
 (DIR) Post #AYiQq46O9nsm7AVSFc by draxil@social.linux.pizza
       2023-08-14T08:22:13Z
       
       0 likes, 0 repeats
       
       @galdor I can't remember if markdown mode is treesitter-able yet?
       
 (DIR) Post #AYiXu8BRchvJbvkzsu by galdor@emacs.ch
       2023-08-14T09:41:23Z
       
       0 likes, 0 repeats
       
       @draxil No idea, but major modes go way beyond syntax highlighting.
       
 (DIR) Post #AYkkO1vR2jpuefDCwS by draxil@social.linux.pizza
       2023-08-15T11:10:41Z
       
       0 likes, 0 repeats
       
       @galdor Of course! The -ts modes should inherit all that. Looks like there is if treesit-auto is to be believed:https://github.com/renzmann/treesit-auto/blob/bac3b9d1d61a4d759f87c80de7be3b808d19cbf6/treesit-auto.el#L208