To keep line lengths within a fixed limit (e.g., 80 characters), it is occasionally useful to insert a \n
after the ](
when linking to a long URL. This whitespace is stripped out by many markdown processors (notably: GitHub), so it does not affect how the markdown is rendered to HTML.
Unfortunately, this extra newline causes markdown-mode
to behave erroneously when the link is clicked.
[Works](http://example.com)
[Broken](
http://example.com)
Clicking on either "Works" or "Broken" will cause one's web browser to open http://example.com
The "Works" link behaves as expected, but the "Broken" link causes emacs to find a file named example.com
in a non-existent directory; M-x make-directory
causes a directory named \nhttp:
to be created (yes: directory name starts with a newline character AFAICT; this causes all manner of strange behaviour from emacs, Finder, ls
, etc.)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4