Markdown AutomatonBring your finite automata diagrams to life directly within your Markdown files! This extension allows you to describe state machines using a simple, intuitive syntax and renders them as beautiful, standard-compliant diagrams in your VS Code Markdown preview. Most importantly, it provides a crucial "Bake" feature that converts your diagrams into embedded SVG images, ensuring they appear perfectly when you export your Markdown to PDF, HTML, or view it on platforms like GitHub or Typora. Features
🔧 How to Use1. Describing Your AutomatonIn any Markdown file, create a code block and specify the language as
2. Syntax GuideThe syntax is line-based and straightforward: Define a State: Simply write the name of the state. You can add attributes in brackets.
Define a Transition:
Use the
3. Baking for Export (Crucial Step!)The live preview shows a placeholder to keep things fast. To render the final diagrams for export:
Your Markdown file is now ready to be converted to PDF/HTML or pushed to GitHub with perfectly displayed diagrams! 🛠️ Installation
LicenseThis extension is licensed under the MIT License. See the LICENSE file for details. Contributing & AcknowledgementsFeel free to open an issue or submit a pull request on GitHub! This extension heavily relies on the amazing Viz.js library, a JavaScript port of Graphviz. Enjoy creating beautiful automata diagrams! |