Inline shortcuts are sometimes not handled correctly #806
-
Hello. I stumbled upon a little problem with the inline shortcuts. When there is one inline shortcut at the start of a line and one at the end, the whole line is interpreted as a block shortcut. Obviously the result is not the expected one. For example:
It seems to me that the cause of this is in markdown.php:3878:
This checks only if there is a
Or am I missing something? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 4 replies
-
I can confirm the bug, thanks for the detailed information. In theory the regex uses a non-greedy matching, but in practice it sometimes doesn't work as expected. By the way, while testing I found out that only extensions are affected that handle both Here is another example for reproducing the problem:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your bug report. I updated the Markdown extension and the Parsedown extension. There was an error with detecting block type shortcuts, a false positive, which prevented detecting inline type shortcuts. Should be fixed now, please try it out. |
Beta Was this translation helpful? Give feedback.
Thanks for your bug report. I updated the Markdown extension and the Parsedown extension. There was an error with detecting block type shortcuts, a false positive, which prevented detecting inline type shortcuts.
Should be fixed now, please try it out.