This is a great script, thanks! Since the horizontal lines are all created as dashes, the markdown table is rendered without a horizontal line under it. It would be nice if you had the option to create the table with equal signs instead.
In the meantime, this command will do it:
sed -i 'N;/^[^-]*-/{n;s/-/=/g;:a;n;ba};P;D' table.md
:)
This is a great script, thanks! Since the horizontal lines are all created as dashes, the markdown table is rendered without a horizontal line under it. It would be nice if you had the option to create the table with equal signs instead.
In the meantime, this command will do it:
sed -i 'N;/^[^-]*-/{n;s/-/=/g;:a;n;ba};P;D' table.md:)