Pug ⇄ HTML Converter — Pure Client Implementation

This file uses a lightweight, pure-JavaScript parser on the client. It supports a practical subset of Pug (tags, #id, .class, attributes, inline text, nesting via indentation) and converts basic HTML back into Pug. It intentionally avoids external libraries so it works directly in any modern browser.