Work around a pandoc formatting bug with .OP when it wraps to have a square bracket at the start of the line.

This commit is contained in:
Andrew Wood
2024-10-14 23:36:48 +01:00
parent 84651210e6
commit dc648a5368
+1 -1
View File
@@ -88,7 +88,7 @@ EXTRA_DIST += $(TESTS) tests/run-valgrind.sh tests/test-env.sh
docs/pv.1.md: $(srcdir)/docs/pv.1
test -d docs || mkdir docs
pandoc --from man --to markdown < $< | sed '/\*\*\*\*/{s/\*//g;s/^/**/;s/$$/**/}' | sed '/^```/,/^```/d' > $@
pandoc --from man --to markdown < $< | sed '/\*\*\*\*/{s/\*//g;s/^/**/;s/$$/**/}' | sed '/^```/,/^```/d' | sed 's/^\\\[/[/' > $@
SUFFIXES = .c .o .e