This is a simple Wordpress plugin that allows us to embed markdown files from GitHub on a page, simply by pasting the file's URL onto any page. It is a small adaptation of the code presented in ths blog post.
You cannot use the Download ZIP
button on the GitHub web interface unfortunately,
because the parsedown
submodule won't get
downloaded. Instead, you should:
- Clone the repository
- Zip using the command line as follows (if you use the graphical interface of GNOME's
/ macOS' file explorer, you'll get an error on upload):
zip -r embed-gh-md.zip embed-gh-md
- Upload from the admin panel at
/wp-admin/plugin-install.php
.