2025-04-02 微涼
On r/Writing, someone asked with what software people write. A fellow redditor replied they used Visual Studio Code and wrote things in Markdown format because he was a programmer.
Interesting, me too!
So, I asked if the fellow programmer also checked in the writings into a Git repository. The reply was positive.24Please respect copyright.PENANAl0EILzROzj
Not only that, I got a valuable pro-tip that I felt like I should try: strictly write one sentence per line as it works better with the standard diff tools!24Please respect copyright.PENANArlfvAB8LKH
I immediately understood what that meant! Markdown format concatenates multiple lines into a single line during rendering if an explicit line-break syntax or paragraph-break syntax does not present. We can exploit that to work better with the common text comparison tools that mostly compare lines, although many modern diff tools also work word-by-word.24Please respect copyright.PENANAu3D3BvQx6Y
As a matter of fact, I’m trying this approach right now in this entry!
ns3.144.153.204da2