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.16Please respect copyright.PENANATmTUGd8CJ7
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!16Please respect copyright.PENANAA3I0Srg0XA
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.16Please respect copyright.PENANAv6XXrMGC9Q
As a matter of fact, I’m trying this approach right now in this entry!
ns3.145.81.212da2