DEV Community 👩‍💻👨‍💻

Pacharapol Withayasakpunt
Pacharapol Withayasakpunt

Posted on

VSCode word wrap for very very long base64 image datauri? (Generate no more than 5 lines.)

Is this even possible? Limiting the markdown to enable internal base64 image datauri, and keeping sanity.

Top comments (3)

Collapse
 
benjioe profile image
Benjioe

If I understand, you enabled vscode's setting "word wrap" and when you get a long string (like base64 Uri in Markdown), its display on more than 5 lines and that's ugly?

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt Author

umm... It's not only more than 5 lines now. It's like 100 lines.

Collapse
 
flyingcakes profile image
Snehit Sah

The length depends on the size of image. Larger image size will have a longer base64 representation, and hence occupy more number of lines.

🌚 Browsing with dark mode makes you a better developer.

It's a scientific fact.