Skip to content

Commit 68fc0bc

Browse files
feat: add box-drawing input support for treeView diagrams
- boxDrawingPreprocessor.ts: converts box-drawing chars to indent format - parser.ts: integrate preprocessor with error line remapping - 41 unit tests + 4 AST equivalence integration tests - 2 demo sections in treeView.html
1 parent 98b3155 commit 68fc0bc

5 files changed

Lines changed: 907 additions & 5 deletions

File tree

demos/treeView.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,44 @@ <h2>Folder Names with Spaces</h2>
140140
</div>
141141
</div>
142142

143+
<h2>Box-Drawing Input</h2>
144+
<div class="demo">
145+
<pre class="source"></pre>
146+
<div class="rendered">
147+
<pre class="mermaid">
148+
treeView-beta
149+
├── src/
150+
│ ├── components/
151+
│ │ ├── Button.tsx
152+
│ │ └── Modal.tsx
153+
│ ├── utils/
154+
│ │ └── helpers.ts
155+
│ └── index.js
156+
├── docs/
157+
│ └── README.md
158+
├── package.json
159+
└── .gitignore
160+
</pre>
161+
</div>
162+
</div>
163+
164+
<h2>Box-Drawing with Annotations</h2>
165+
<div class="demo">
166+
<pre class="source"></pre>
167+
<div class="rendered">
168+
<pre class="mermaid">
169+
treeView-beta
170+
├── src/
171+
│ ├── App.tsx :::highlight ## main component
172+
│ ├── index.js ## entry point
173+
│ └── config.ts
174+
├── docs/
175+
│ └── guide.md ## user guide
176+
└── package.json
177+
</pre>
178+
</div>
179+
</div>
180+
143181
<h2>Custom Config</h2>
144182
<div class="demo">
145183
<pre class="source"></pre>

0 commit comments

Comments
 (0)