File: fixup_markdown.sh

package info (click to toggle)
json-c 0.18%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,412 kB
  • sloc: ansic: 9,153; sh: 546; cpp: 18; makefile: 12
file content (6 lines) | stat: -rwxr-xr-x 240 bytes parent folder | download | duplicates (3)
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; } ' "$@"