Editor Components: Good example for "body/markdown" capturing RegEx

I’m trying to build a simple editor component for a Hugo shortcode that captures a “title” parameter and the inner content of the shortcode. Something like this:

{{< inline title="Something" >}}

One line 
or two

{{< /inline >}}

Even though this EMAC regex works fine on regex101.com (capturing the title param as the first match, and the inner as the second):

/^{{< inline title="([^"]*)" >}}([^"]*){{< \/inline >}}$/g

NetlifyCMS fails to detect it from my content when I use the same regex value as pattern for the component…

All the example I can find out there are about simple strings (image components, figure components etc…)

Has anyone ever tried to capture a big blob of text from inside a shortcode’s inner content in order to build an editor component?

Thans a ton!

Hi there! Thanks for your interest in Netlify CMS. Looks like you posted your question a little while ago, but that you haven’t received a solution yet. Here’s where you might get more help:

netlifycms.org - the site houses our extensive documentation that likely contains helpful information to get you back on track.

netlify cms slack - join our friendly slack channel and chat with other cms pros to get the help you need.

GitHub Issues - think you’ve found a bug, or would like to make a feature request? Make your voice heard here. Netlify CMS is open source - PRs and other contributions are also welcome!

Stack Overflow Check StackOverflow for questions tagged “Netlify CMS” if you don’t get an answer in the Slack or the GH issues. StackOverflow reaches a worldwide audience of knowledgeable people.

Your question will be left open here for anyone to comment - but we encourage you to check out the above resources if you are still looking for a solution!