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

Nested markup and orphan characters #430

Closed
gzagatti opened this issue Oct 24, 2022 · 3 comments
Closed

Nested markup and orphan characters #430

gzagatti opened this issue Oct 24, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@gzagatti
Copy link
Contributor

Describe the bug

With the latest changes to in-line markup, I have noticed a bug related with nested markup and orphan characters.

Take the following expression:

zoo =and *boo and= bar* and *goo zar*

We end up with verbatim highlight on =and *boo and= and bold on * and * which is wrong since bar* does not start a bold markup.

This problem is particularly frequent with links like the following:

This is [[https://foobar/foo]] foo/

Which highlights as italic /foobar/foo]] foo/.

Steps to reproduce

  1. Open a new org file.
  2. Add the following:
foo =and *foo and= bar* and *foo bar*

Expected behavior

The correct behavior is to have verbatim highlight on =and *foo and= and bold on *foo bar*.

Emacs functionality

N/A

Minimal init.lua

N/A

Screenshots and recordings

No response

OS / Distro

Ubuntu 22.04

Neovim version/commit

0.8

Additional context

No response

@gzagatti gzagatti added the bug Something isn't working label Oct 24, 2022
@kristijanhusak
Copy link
Member

Emacs itself doesn't really know how to handle some of these when link has some spaces:

screenshot

But I guess spaces are just not a valid char in a link.

@gzagatti
Copy link
Contributor Author

I think I managed to fix this issue with PR #431.

@kristijanhusak
Copy link
Member

These issues should be fixed on latest master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants