Skip to content

Instantly share code, notes, and snippets.

@xapax
xapax / convert-html-markdown.sh
Last active February 1, 2023 19:06
Converting html to markdown - useful when migrating from wordpress to jekyll
#!/bin/bash
filename=$(basename "$1")
dirname=$(dirname "$1")
extension="${filename##*.}"
filename_without_extension="${filename%.*}"
sed -i -e 's/<p>//g' $1