Pipe breaks link text?
CompletedThis is the first time I've run into this, so I'm not 100% sure what's doing it, but here are the symptoms:
I pasted this markdown-style link into a note (it was created by automatically combining the web page title with the URL):
```
[For Hannah Arendt, totalitarianism is rooted in loneliness | Aeon Essays](https://aeon.co/essays/for-hannah-arendt-totalitarianism-is-rooted-in-loneliness)
```
1. When I inserted a hyphen and space at the front of the line, to make it a bulleted item, it did become a bulleted item. However, the link broke — it became plain text in the preview window. The text displayed was the full page title (i.e, the renderer didn't seem to be interpreting the pipe as a separator of some kind).
2. Erasing the hyphen-space combination did NOT fix the problem; it remained plain text.
3. To see whether the pipe was causing the problem (since it's the most unusual component of the title line), I started to erase it.
4. Erasing just the space following the pipe turned the line into a link in the preview window.
5. Re-adding the space after the pipe did not break the link. It remained a link in the preview.
6. Adding a hyphen-space at the beginning of the line once again broke the link, turning it into plain text.
7. Erasing the space after the pipe once again restored the link, which again remained when I replaced the space trailing the pipe.
The above is all reproducible apparently endlessly.
8. Starting from the beginning through step two, I then tried removing the space *before* the pipe. This rendered the text up to (and including) the pipe as a link; the link worked — i.e., it used the full URL. However, the text after the pipe (` Aeon Essays`, including the leading space) remained visible but wasn't rendered as a link.
9. Curiously, if I remove the leading hyphen-and-space *before* replacing the space preceding the pipe, the entire line once again renders as plain text — no link at all.
10. Now, replacing the space before the pipe once again renders the first part of the line (up through, and including, the pipe) as a link. The "Aeon Essays" portion remains visible.
My conclusion: Something about spaces and a pipe in the link text is messing up link rendering in the preview.
I'm using nvUltra Version 1.0.0 (68) on a MacBook Pro (Retina, 13-inch, Early 2015) running 10.14.6 (18G5033)
-
It actually has nothing to do with pipes. It has to do with typing just in front of the link.
In order to synchronize the editor scroll positioning and the preview, I need to "work some magic", and editing just in front of the brackets of the link breaks that.
I have a fix, but I seem to recall something similar years and years ago and having trouble with it for some reason. I'll push the fix to the beta and look to see if it works now (maybe it was an issue specific to WebView and not WKWebView and no longer relevant??)
Thanks!
0 -
So far it seems to be working. If any new issues arise with the changes to the preview sync engine, then I'll address those separately.
0 -
Thanks! Yes, this seems to be working for me as well. It's not a situation I run into a lot, so I tried re-creating the problem using my post above, and nothing weird happened this time.
0
Please sign in to leave a comment.
Comments
3 comments