[Github-comments] [geany/geany] Markdown syntax highlighting confused by empty image title (#2798)

r0polach notifications at xxxxx
Fri Apr 23 00:13:58 UTC 2021


Geany's markdown syntax highlighting (without the markdown plugin) is confused, when image link without title is used:
```
  ![](media\image21.png)
```
All the following text is highlighted bold (same as the link itself).
![md1](https://user-images.githubusercontent.com/1393254/109849915-38615f00-7c52-11eb-9185-7f63af7c3b81.png)
Also the following markdown syntax is ignored - see ```*Obecné*``` is not in italics.

When I fill in some title to image link
```
  ![abc](media\image21.png)
```
then the highlighting became correct (i.e. only link itself is bold).
![md2](https://user-images.githubusercontent.com/1393254/109849989-4b742f00-7c52-11eb-90d3-83d4109e5f25.png)
Also the following markdown syntax is ok then (*```*Obecné*```* **is** in italics).

The correct behavior is to highlight bold only the link even if its title is empty.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2798
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210422/6470918c/attachment-0001.htm>


More information about the Github-comments mailing list