Strip the code block markdown

Welcome to the Make community!

You don’t even need a MODULE for this.

You can use the built-in function replace

e.g.:

{{ replace(2.result; "/(?:```.*\s+|\s+```)/g"; emptystring) }}

Screenshot_2024-07-13_210753

Proof: https://regex101.com/r/2HEaUn/1

For more information, see the function documentation in the Help Center.

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

4 Likes