sdd-forge 0.1.0-alpha.25 → 0.1.0-alpha.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdd-forge",
3
- "version": "0.1.0-alpha.25",
3
+ "version": "0.1.0-alpha.26",
4
4
  "description": "Spec-Driven Development tooling for automated documentation generation",
5
5
  "repository": {
6
6
  "type": "git",
@@ -211,8 +211,8 @@ export function resolveDataDirectives(text, resolveFn, opts) {
211
211
  if (onResolve) onResolve(d, rendered);
212
212
 
213
213
  if (d.inline) {
214
- const openTag = d.raw.match(/\{\{data:\s*[\w.-]+\.[\w-]+\("[^"]*"\)\s*\}\}/)[0];
215
- const endTag = "{{/data}}";
214
+ const openTag = d.raw.match(/<!--\s*\{\{data:\s*[\w.-]+\.[\w-]+\("[^"]*"\)\s*\}\}\s*-->/)[0];
215
+ const endTag = "<!-- {{/data}} -->";
216
216
  lines[d.line] = lines[d.line].replace(d.raw, `${openTag}${rendered}${endTag}`);
217
217
  replaced++;
218
218
  } else if (d.endLine >= 0) {