Period combined with ***~text~*** does not parse correctly

Testing version: Panda Version 1.0 (922)

What were you doing: Testing the syntax!

What feature did you use:

I typed this text to test the new input:

***~this should be bold, italic, and underlined~***.

Without the period, it parses and renders correctly. With the period at the end, it does not. The problem seems to be in the parse of the **, specifically whether it’s at a clear word boundary. Thus, this works:

**_~this should be bold, italic, and underlined~_**.

But this also does not:

_**~this should be bold, italic, and underlined~**_.

What happened:

Given the three samples above, in the same order, this is how they rendered:

Screen Shot 2020-11-04 at 7.14.56 AM

What did you expect to happen:

All of those should parse and render the same final output.

As you can see looking at the middle sample, it is actually also not parsing correctly: it is not closing the emphasis. Continuing to type on that line produces this output: