@tryghost/mg-shortcodes 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/Shortcodes.js CHANGED
@@ -189,7 +189,8 @@ export default class Shortcodes {
189
189
  // content = content?.trim();
190
190
 
191
191
  if (theCall) {
192
- text = text.replace(knownShortcode.match[0], theCall({attrs, content}));
192
+ const replacement = theCall({attrs, content});
193
+ text = text.replace(knownShortcode.match[0], () => replacement);
193
194
  this.html = text;
194
195
  }
195
196
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-shortcodes",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/TryGhost/migrate.git",