Describe the bug
I have created some custom editor components for modifying content that is rendered in Hugo short codes. I am able to add the custom editor components using the markdown editor, however when I go back to edit the page only some of the editor components are rendered.
To Reproduce
Expected behavior
The 3 components should render with their editor component, but the second component shows only the code instead of the editor components.
Screenshots

Applicable Versions:
CMS configuration
Some things I've noticed trying to troubleshoot this:
registerEditorComponent so that component 2 is registered before component 1, then component 1 is the one that shows the code in the content instead of component 2.Sent invalid data to remark
I was able to fix this by ensuring the pattern for be editor component begins with ^.
Pattern where this problem occurs:
pattern: /{{% component_one %}}([\S\s]*?){{%\ component_one %}}/,
Pattern where this problem is fixed:
pattern: /^{{% component_one %}}([\S\s]*?){{%\ component_one %}}/,
Thank you @Lane !
Had the same problem, can confirm @Lane's fix worked.
Most helpful comment
I was able to fix this by ensuring the
patternfor be editor component begins with^.Pattern where this problem occurs:
Pattern where this problem is fixed: