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.15Please respect copyright.PENANAmGlZAE518J
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!15Please respect copyright.PENANAJkyONp3p3T
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.15Please respect copyright.PENANA1sLCrQae7N
As a matter of fact, I’m trying this approach right now in this entry!
ns3.145.156.55da2