Skip to content

Commit 6180cac

Browse files
committed
Add script to strip unnecessary <p> for table headers
1 parent 8767c39 commit 6180cac

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

07_fix_table_headers.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
shopt -s globstar
4+
for i in content/**/*.md
5+
do
6+
echo $i
7+
8+
# Table headers are wrapped in an unnecessary <p> tag
9+
sed -i -e 's,<th><p>,<th>,g' $i
10+
sed -i -e 's,</p></th>,</th>,g' $i
11+
done

0 commit comments

Comments
 (0)