Plugin info

Total downloads: 1,572
Active installs: 100
Total reviews: 2
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 8/29/2023 (855 days ago)
Added to WordPress: 2/5/2021 (4 years old)
Minimum WordPress version: 4.7
Tested up to WordPress version: 6.3.5
Minimum PHP version: 7.0

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 855 days ago • 2 reviews

22/100

Is External Markdown abandoned?

Possibly abandoned (last update 855 days ago).

Compatibility

Requires WordPress: 4.7
Tested up to: 6.3.5
Requires PHP: 7.0

Developers

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

WP Gitlab
Rating 0.0/5 (0 reviews)Active installs 10
Issues Exporter for GitLab
Rating 5.0/5 (2 reviews)Active installs 0
Git Snippets
Rating 0.0/5 (0 reviews)Active installs 0

Description

This is a plugin for WordPress to embed Markdown files from external web sources (e.g. GitHub, GitLab, etc) into WordPress content using the shortcode [external_markdown]. A possible use case for this is to show content from a single source of truth (like a GitHub repository) on your WordPress website.

Features

  • Embed any publicly accessible markdown file from other websites
  • Uses the public and free GitHub API to transform Markdown to HTML (there is a rate limit – so don’t overdo it)
  • Caching support (so you can configure how often the file is being fetched from the source – default is a once per hour maximum)
  • Customise the CSS class of the markdown container to adjust styles

Instructions / Examples

Download and unpack or clone this repository into your wp-content/plugins folder, so the PHP file resides in wp-content/plugins/external-markdown/external-markdown.php.

If you use the Guttenberg editor, you need to add a “Shortcode” block first. If your’re using the classic editor, you can use the shortcode right away.

Simple embed

The url parameter takes the URL to the Markdown file you want to embed. Make sure to use the “raw” URL when you use GitHub, GitLab, etc.
[external_markdown url="https://raw.githubusercontent.com/pReya/wordpress-external-markdown/main/README.md"]

Adjust caching duration

The ttl parameter controls how long the cached version is used, before it’s fetched again. The value is given in seconds. So 24 hours (24* 60 *60) result in a value of 86400.
[external_markdown ttl=86400 url="https://raw.githubusercontent.com/pReya/wordpress-external-markdown/main/README.md"]

Adjust container CSS class

The class parameter takes your desired class name for the external markdown container. The default class name for the container is class='external-markdown'.
[external_markdown class="my-classname" url="https://raw.githubusercontent.com/pReya/wordpress-external-markdown/main/README.md"]

Attention when using GitHub, GitLab, etc.

When embedding content from Git hosting services like GitHub or GitLab, you need to make sure to use the proper “raw” markdown URL. You can find this URL in the upper right corner of the web view.

Attribution

  • This plugin was inspired by the great wordpress-markdown-git plugin, which serves a similar purpose, but uses the Git provider APIs to fetch the raw Markdown files – which is a little more complicated than this approach here.

Installation

No installation instructions available

Frequently Asked Questions

No FAQ available

Review feed

Hudson Atwell
8/15/2021

Working well

Great asset, thanks!

Screenshots

No screenshots available

Changelog

No changelog available