File: fixup_markdown.sh

package info (click to toggle)
json-c 0.15-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,512 kB
  • sloc: ansic: 8,166; sh: 493; javascript: 82; makefile: 12; cpp: 11
file content (6 lines) | stat: -rwxr-xr-x 240 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
#!/bin/sh
#
# Doxygen markdown doesn't support triple-backticks like github does.
# Convert all of those to space-prefixed blocks instead.
#
awk '/```/ { prefix=!prefix; print ""; next; } { if (prefix) { printf "    "; } print $0; } ' "$@"