community-cypher-system-ref.../scripts/base/001-fix-anchor-permalinks.sh

5 lines
209 B
Bash
Executable File

#!/bin/bash
# either Pandoc mangled the permalinks throughout or they were done by JS in OG-CSRD,
# either way this fixes them
sed -E 's/\[\]\((.*) "Permalink"\)/ \[#\](\1)/' _tmp/ccsrd.md > _tmp/ccsrd.new.md