I made MDEZ++ (mdez), a lightweight Markdown editor. It is built with C++20 and the Qt Framework because of the need for speed. Instead of a WYSIWYG (What You See Is What You Get) editor, or the polar opposite, a raw Markdown editor with a separate option to render it, it renders the raw Markdown as you type it on the right side of the screen. There’s essentially no knowledge required to use MDEZ++, not even knowledge of Markdown syntax. This is because of the Format menu, which allows you to apply Markdown syntax by clicking on unambiguous buttons. It can even render HTML files too, with almost the same workflow as Markdown files. It can also edit any other plaintext file format, making it highly versatile.
While this project only took me 40 hours (10 less than the last project), these hours were definitely harder than my last project. I had to find unique solutions to some problems that traditionally can never be solved without embedding a resource-expensive, bulky Chromium instance into the rendering side, which would completely defeat the purpose of the project. Those types of issues all stem from Qt’s Markdown rendering. It applies some really weird rendering to Markdown. Two of these issues were blockquotes not having ANY special coloring, and the same with code blocks (not even a grey background). I solved those issues with unique, complex regexes. While brittle, they seem to still work.
I am so proud of myself for getting my project on Flathub. It was a very hard thing to get done, and it took a long time, but it worked out in the end. (It’s not the end now, obviously. This will be maintained.)
When I look through the features section of my README (which I just recently updated), I don’t think of MDEZ++ as a small project made by an indie developer (I don’t like the word Indie for some reason; it just seems too culturally appealing in the sense of turning coding into some sort of a social media lifestyle), but rather, just as a professional-grade project. I can’t even imagine how I made something as complex as this. The features section has 12 points, which still skips over the non-cumbersome or medium-to-easy-difficulty features.
But a harder trouble than the GitHub Actions CI/CD Workflow was that I was essentially a beginner to C++ before I started this project! I had briefly touched some C++ maybe a year or so ago, but in my mind, I was a complete beginner when I started MDEZ++. That was evident in my unfamiliarity with absolutely every single thing I had to do, and especially with those compiler errors (and segmentation faults, especially when implementing the ability to use a tabbed interface) I had never experienced before. But I powered through with those Qt Docs, and I did beautifully!
With my unfamiliarity to the C++ coding language, I was debugging randomly for many hours on end. And I was even personally targeted by segmentation faults! Yes, personally! I didn’t even know about gdb (GNU Project Debugger) until a few days ago when I saw a random Reddit post. I was essentially thinking, “Which one of these lines looks most suspicious?” for most of my debugging of this project, which isn’t even the correct way to find a segmentation fault! (It’s usually the communication of multiple different things. But philosophically, that statement is always right, just not elaborated upon properly).
Have fun rating the project! If you want a quick video overview, check this attachment I made for a random Reddit post about five days ago. The Flathub page is here and is also the website linked to the GitHub Repository, which is here.
- 12 devlogs
- 41h