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.8Please respect copyright.PENANAjSOybgefoD
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!8Please respect copyright.PENANAycSTxJ6kRX
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.8Please respect copyright.PENANAV49W4L6Arn
As a matter of fact, I’m trying this approach right now in this entry!
ns18.217.155.228da2