A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jrblevin/markdown-mode/issues/514 below:

Whitespace in link URLs confuses markdown--browse-url · Issue #514 · jrblevin/markdown-mode · GitHub

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.

Steps to Reproduce
  1. With the following text in a Markdown buffer,
[Works](http://example.com)
[Broken](
http://example.com)
  1. …click the links "Works" and "Broken".
Expected Behaviour

Clicking on either "Works" or "Broken" will cause one's web browser to open http://example.com

Actual Behaviour

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.)

Software Versions

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