sommark 5.0.4 → 5.0.5

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.
@@ -18,7 +18,7 @@ export function registerHostSettings(settings) {
18
18
  hostSettings = settings || {};
19
19
  }
20
20
 
21
- const version = "5.0.4";
21
+ const version = "5.0.5";
22
22
 
23
23
  const SomMark = {
24
24
  version,
package/core/modules.js CHANGED
@@ -441,6 +441,7 @@ export async function resolveModules(ast, context) {
441
441
  Object.entries(node.props).filter(([key]) => {
442
442
  if (key === "__consumed__") return false;
443
443
  if (consumed.has(key)) return false; // THE FIX: Filter if hit by v{}
444
+ if (key === "smark-raw") return false; // directive — must not leak onto root element
444
445
  return true;
445
446
  })
446
447
  );
@@ -8627,7 +8627,7 @@ function registerHostSettings(settings) {
8627
8627
  hostSettings = settings || {};
8628
8628
  }
8629
8629
 
8630
- const version = "5.0.4";
8630
+ const version = "5.0.5";
8631
8631
 
8632
8632
  const SomMark$1 = {
8633
8633
  version,
@@ -13694,6 +13694,7 @@ async function resolveModules(ast, context) {
13694
13694
  Object.entries(node.props).filter(([key]) => {
13695
13695
  if (key === "__consumed__") return false;
13696
13696
  if (consumed.has(key)) return false; // THE FIX: Filter if hit by v{}
13697
+ if (key === "smark-raw") return false; // directive — must not leak onto root element
13697
13698
  return true;
13698
13699
  })
13699
13700
  );
@@ -12576,6 +12576,7 @@ async function resolveModules(ast, context) {
12576
12576
  Object.entries(node.props).filter(([key]) => {
12577
12577
  if (key === "__consumed__") return false;
12578
12578
  if (consumed.has(key)) return false; // THE FIX: Filter if hit by v{}
12579
+ if (key === "smark-raw") return false; // directive — must not leak onto root element
12579
12580
  return true;
12580
12581
  })
12581
12582
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sommark",
3
- "version": "5.0.4",
3
+ "version": "5.0.5",
4
4
  "description": "SomMark is a template language that compiles to multiple output formats — HTML, JSON, YAML, TOML, CSV, Markdown, XML, and more.",
5
5
  "main": "index.js",
6
6
  "files": [