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
There is also another bug in that code which replaces only first occurence element, while not adding classes to any folowing elements of the same type: #1026
Description
The wiki example contains incorrect regex patterns, leading to unexpected results.
Example
Let's say we are trying to convert
mdText
with the following default classes:If we use the code in the wiki example, the
<pre>
tag would be incorrectly replaced.Notice that
<pre>
is replaced by<p class="text-sm" re>
.Suggestion
I suggest using this regex pattern:
This new regex pattern ensures proper replacement without affecting other HTML tags.
The text was updated successfully, but these errors were encountered: