All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

D2 0.7.1 Release Introduces ASCII Diagram Output Feature

By

alixanderwang

9mo ago· 2 min readenNews

Summary

D2 version 0.7.1 introduces ASCII output functionality, allowing users to generate ASCII diagrams from .d2 files with .txt extensions. The article demonstrates how this feature works through the D2 Vim extension, showing real-time preview updates. It highlights the practical application of ASCII diagrams in code documentation, where small diagrams in source code comments can provide clearer visual explanations than text descriptions alone.

Key quotes

· 4 pulled
In the latest release of D2 (0.7.1), we introduce ASCII outputs.
Any output file with extension txt will use the ASCII renderer to write to it.
Perhaps the most useful place for ASCII diagrams is in the source code comments.
Small simple diagrams next to functions or classes can serve to be much clearer than describing a flow.
Snippet from the RSS feed
In the latest release of D2 (0.7.1), we introduce ASCII outputs.

You might also wanna read