#!/bin/sh # SPDX-FileCopyrightText: 2024 Jonas Smedegaard ' -x '' -y '' -z '' "$1" "$2" # annotate changes with both span and del/ins html tags # * only del/ins confuses markdown parsers around unnumbered lists # inspiration: https://stackoverflow.com/a/2384393/18619283 set - --start-insert='' --stop-insert='' "$@" set - --start-delete='' --stop-delete='' "$@" # treat # as whitespace and other punctuation as delimiters set - --white-space=' \t\n#' --delimiters=',.?:;[]()-_/' "$@" # compact difference detection and representation set - --algorithm=best --repeat-markers "$@" #echo dwdiff "$@" exec dwdiff "$@"