The regex would still run even if markdown formatting is disabled,
but a placement is selected. Fix that by adding an extra check
in the loop.
Signed-off-by: kingbri <bdashore3@proton.me>
Absolute positioning was causing an issue on both mobile and PC in
terms of expression image sizing. Dynamically set image width and
height along with fixing absolute position anchors.
This is not a fix for groups.
Signed-off-by: kingbri <bdashore3@proton.me>
Previously, there was a checkbox to select placement as MD display.
This was counterintuitive since some users believed MD display
enclosed the other placement options.
Now, add a universal switch to finely tune what parts of a chat should
be excluded with MD formatting. For example a regex with the option
enabled with AI output selected will only format replies from the
character.
This is an improvement since users can now choose what parts of a
chat to format rather than sticking with a global display specifier.
Signed-off-by: kingbri <bdashore3@proton.me>
Through the impersonate function it is possible for the AI to create a text as if it were in the place of the user's character, but the text is randomly generated without the user being able to suggest what he wants to be created. By including this new macro, the user will be able to guide the impersonate generation.
Multiple scripts were not running due to improper variable assingment.
For efficiency's sake, do not do a string comparison before returning
and instead do another variable assignment in the parent function.
Doing this reduces the length of regex hooks in the parent calls,
but also removes the need for unnecessary O(n) complexity of comparing
two string variables.
If there are errors, it would be advisable to add string comparison
and revert back to the old logic in parent function calls.
Signed-off-by: kingbri <bdashore3@proton.me>