Finding Broken Feature Images in Markdown Files with a Script

Introduction Do you ever struggle to keep track of all the feature images in your Markdown files? This script is here to help. The Purpose The main purpose of this script is to list all the broken feature images in your Markdown files. It searches for files with the “.md” extension within a specified directory and reads the contents of each file. The script then checks for the existence of feature images and extracts the image URL....

January 1, 2020 · 2 min

Removing Image Information from Markdown Files

Removing Image Information from Markdown Files If you have a large directory of blog posts written in markdown format, you might find yourself in a situation where you need to remove specific lines from all of them. This script is here to help you with that. The script starts by defining two functions: remove_lines_in_dir() and remove_lines(lines). The remove_lines_in_dir() function is used to iterate through all files in the directory and call the remove_lines(lines) function on each markdown file....

2 min