fix: Empty tags now report diagnostics.

This commit is contained in:
Spencer Brower
2026-08-10 17:42:43 -04:00
parent 3551eb3b2c
commit a9d7525dd6
3 changed files with 35 additions and 1 deletions
+14 -1
View File
@@ -130,7 +130,7 @@ input: |
</footer>
expected: |
Empty tag
--> <test>:11:28
--> <test>:11:28
|
9 | href="https://edwardtufte.github.io/tufte-css/">Tufte CSS</a>
10 | </p>
@@ -139,6 +139,19 @@ expected: |
12 | </footer>
|
---
name: empty raw tag
enable: true
should: error
input: |
Hello, {{&}}
expected: |
Empty tag
--> <test>:1:8
|
1 | Hello, {{&}}
| ^^^^^ tag must contain a key
|
---
name: Missing pipe arguement
enable: true
should: error