You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This regex allows repeated classes/styles etc so it's matching the class and text from (class)(text)(title) via the $this->clas part (the title is pulled off by the link parsing regex and used as the link text as the attribute gobbled it.) Then the attribute parsing code takes the (class)(text) that it got passed as the attributes and correctly pulls the class from it leaving (text) which then gets parsed as left and right padding. What a mess.
I'm going to do more work on the link parsing code anyway over the Christmas break so I'll take a closer look at fixing this as I do what I already had planned.
Pushed a fix for this as part of the new branch (now merged into master and removed: see db84396 in particular with regard to this issue). Uses a new pattern that cuts out the * from the attributes regular expression but still allows matching of language/style/class#id in any order.
The following:
Generates:
There seems to be no way to have class, title and content in parentheses at the same time.
The text was updated successfully, but these errors were encountered: