@entropicwarrior/sdoc 0.2.10 → 0.2.11
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 +1 -1
- package/src/sdoc.js +2 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@entropicwarrior/sdoc",
|
|
3
3
|
"displayName": "SDOC - Docs for Human/Agent Teams",
|
|
4
4
|
"description": "A plain-text documentation format with explicit brace scoping — deterministic parsing, AI-agent efficiency, and 10-50x token savings vs Markdown.",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.11",
|
|
6
6
|
"publisher": "entropicwarrior-msenfin",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|
package/src/sdoc.js
CHANGED
|
@@ -1495,6 +1495,8 @@ function renderInlineNodes(nodes) {
|
|
|
1495
1495
|
function renderScope(scope, depth, isTitleScope = false) {
|
|
1496
1496
|
// :comment scopes are not rendered
|
|
1497
1497
|
if (scope.scopeType === "comment") return "";
|
|
1498
|
+
// @about is document metadata, not rendered in output
|
|
1499
|
+
if (scope.id && scope.id.toLowerCase() === "about") return "";
|
|
1498
1500
|
|
|
1499
1501
|
const level = Math.min(6, Math.max(1, depth));
|
|
1500
1502
|
const children = scope.children.map((child) => renderNode(child, depth + 1)).join("\n");
|