diff --git a/packages/core/test/unit/tricky-site/_site.json b/packages/core/test/unit/tricky-site/_site.json new file mode 100644 index 0000000000..7336f26b17 --- /dev/null +++ b/packages/core/test/unit/tricky-site/_site.json @@ -0,0 +1,12 @@ +{ + "title": "Tricky Site", + "pages": [ + "index.md", + "tricky-table-rendering.md", + "mermaid-flowchart.md", + "plantuml-diagrams.md", + "shorthand-syntax.md", + "tree-syntax.md", + "auto-anchors.md" + ] +} \ No newline at end of file diff --git a/packages/core/test/unit/tricky-site/auto-anchors.md b/packages/core/test/unit/tricky-site/auto-anchors.md new file mode 100644 index 0000000000..e0b8c5ca32 --- /dev/null +++ b/packages/core/test/unit/tricky-site/auto-anchors.md @@ -0,0 +1,13 @@ + + +# Auto Anchor Test + + +This tests if anchor icons are auto-added to headings by the plugin. + + +## Level 2 Heading +### Level 3 Heading +#### Level 4 Heading + +Note: These headings should get the anchor icons if IDs are assigned automatically. diff --git a/packages/core/test/unit/tricky-site/index.md b/packages/core/test/unit/tricky-site/index.md new file mode 100644 index 0000000000..bb799995e4 --- /dev/null +++ b/packages/core/test/unit/tricky-site/index.md @@ -0,0 +1,16 @@ + + +# Tricky Cases Test Site + +Welcome to the test site for rendering tricky and corner cases in MarkBind. + +Use this site to quickly verify if previously buggy components are rendering as expected. + +## Pages + +- [Tricky Table Rendering](tricky-table-rendering.md) +- [Mermaid Flowchart](mermaid-flowchart.md) +- [PlantUML Diagrams](plantuml-diagrams.md) +- [Shorthand Syntax](shorthand-syntax.md) +- [Tree Syntax](tree-syntax.md) +- [Auto Anchors](auto-anchors.md) diff --git a/packages/core/test/unit/tricky-site/mermaid-flowchart.md b/packages/core/test/unit/tricky-site/mermaid-flowchart.md new file mode 100644 index 0000000000..9aea932356 --- /dev/null +++ b/packages/core/test/unit/tricky-site/mermaid-flowchart.md @@ -0,0 +1,16 @@ + + +# Mermaid Rendering Test + + +This page demonstrates if <mermaid> blocks are correctly converted and rendered. + + + +flowchart TD + A[Start] --> B{Is it?} + B -->|Yes| C[OK] + C --> D[Rethink] + D --> B + B ---->|No| E[End] + diff --git a/packages/core/test/unit/tricky-site/plantuml-diagrams.md b/packages/core/test/unit/tricky-site/plantuml-diagrams.md new file mode 100644 index 0000000000..4b2a78c9ba --- /dev/null +++ b/packages/core/test/unit/tricky-site/plantuml-diagrams.md @@ -0,0 +1,25 @@ + + +# PlantUML Rendering Test + + +This page shows how PlantUML plugin handles inline and external diagrams. + + +## Inline Diagram + +@startuml +Alice -> Bob : Hello +Bob -> Bob : Self Call +@enduml + + +## Named Diagram + +@startuml +Alice -> Bob : Hello again +@enduml + + +## Referenced External Diagram (simulated) + diff --git a/packages/core/test/unit/tricky-site/shorthand-syntax.md b/packages/core/test/unit/tricky-site/shorthand-syntax.md new file mode 100644 index 0000000000..31bf5d50f3 --- /dev/null +++ b/packages/core/test/unit/tricky-site/shorthand-syntax.md @@ -0,0 +1,16 @@ + + +# Shorthand Syntax Handling + + +This tests if <span heading> is auto-converted by the plugin. + + +## Case 1: Valid Shorthand Inside Panel +Heading + +## Case 2: Invalid Use (No Attribute) +Heading + +## Case 3: Wrong Container +
Should not convert
diff --git a/packages/core/test/unit/tricky-site/tree-syntax.md b/packages/core/test/unit/tricky-site/tree-syntax.md new file mode 100644 index 0000000000..62231ead97 --- /dev/null +++ b/packages/core/test/unit/tricky-site/tree-syntax.md @@ -0,0 +1,16 @@ + + +# Tree Syntax Plugin Test + + +This tests rendering of directory-like structures using the <tree> component. + + + +C:/course/ + textbook/ + index.md +C:/course/ + textbook/ + index.md + diff --git a/packages/core/test/unit/tricky-site/tricky-table-rendering.md b/packages/core/test/unit/tricky-site/tricky-table-rendering.md new file mode 100644 index 0000000000..5359de1cb7 --- /dev/null +++ b/packages/core/test/unit/tricky-site/tricky-table-rendering.md @@ -0,0 +1,44 @@ + + +# Table Rendering: Tbody Variants + + +This page tests how MarkBind renders tables with and without <tbody> tags. + + + + + + + + + +
Planning for next version
+
+ + + + + + +
Planning for next version
+
+ + + + + + + + + + + + + + + + + +
Task IDTaskEstimated EffortPrerequisite Task
EPlanning for next version1 man dayD
+