Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown syntax: bad link recognition after pressing return #971

Closed
BenWiederhake opened this issue Mar 21, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@BenWiederhake
Copy link
Contributor

commented Mar 21, 2016

This is probably a bug in scintilla / ctags / whatever. Please forward appropriately.

Save the following as a normal file:

Hello [lovely
world](http://example.com/with/very/long/URL/that/cant/be/wrapped/reasonably.php)

Asdf

Note that the line breaks are important. Asdf should be on the forth line.

Open this file in geany, move the cursor to the end of the line (right after the closing parenthesis that closes the link) and press 'return'. ('Enter' has the same effect.)

Expected behavior: a new line appears. Duh. (Nothing else should change.)

Actual behavior: a new line appears … and everything afterwards is also part of that link. At least that's what the syntax highlighting suddenly indicates. The whole rest of the file is affected; it doesn't reset at paragraph boundaries or any other sane "well no kind of formatting can cross this point anyway" border.

Manual workaround: find the "link" that caused all this, insert a character before it and delete it again. This seems to cause re-parsing of the link, and this time it works.

$ geany --version
geany 1.27 (git >= d1fcd9f) (kompiliert am 2016-01-03 mit GTK 2.24.29, GLib 2.46.2)

b4n added a commit to b4n/geany that referenced this issue Jan 12, 2019

@b4n b4n closed this in #2045 Jan 13, 2019

@b4n b4n added this to the 1.35 milestone Jan 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.