Introduction

Understand CircuitMarkdown and how it renders text into SVG schematics.

Core Concepts

CircuitMarkdown operates on five core principles:

  1. Virtual Grid: All component positions and wire routes snap to a grid. One grid unit equals 40 pixels.

  2. Text Representation: Each line of text defines one component, wire, or text label.

  3. Strict Validation: The parser checks component names, pin identifiers, and coordinates. Syntax errors stop rendering and display error markers.

  4. Net-Based Wiring: Wire declarations connect component pins by identifier. The routing engine calculates orthogonal wire paths automatically.

  5. SVG Output: The engine renders schematics as standalone SVG graphics. You can export schematics with transparent backgrounds for light and dark pages.

CircuitMarkdown Studio Interface CircuitMarkdown Studio Interface

System Architecture

CircuitMarkdown uses a two-layer architecture:

  • Core Engine: A TypeScript library that parses DSL text, validates pins, routes Manhattan wires, and generates SVG elements.

  • Studio Interface: A web application that combines a Monaco code editor with an interactive SVG canvas.


Next Steps

To create a schematic, read the Quick Start Guide.