search

Markdownviewer

This plugin adds a Markdown Viewer button to the frontend of your Typemill pages. It also exposes the raw Markdown source of every published page at a matching .md URL.

screenshot of the markdown viewer in frontend

This is useful if you want to:

What it does

For every public page the plugin can add a small dropdown button with two actions:

Example: If your page is available at /my-folder/my-page, the Markdown source is exposed at /my-folder/my-page.md.

Configuration

Activate the plugin in the Typemill system settings. Then choose the button position in the plugin settings:

Add the button to your theme

If you choose the In Widget position, add the following snippet to your theme template where you want the button to appear (for example in a toolbar or sidebar):

{% if widgets.markdownviewer %}
    <div id="markdownviewer" class="toolbar-icon f4 mr3">
        {{ widgets.markdownviewer }}
    </div>
{% endif %}

Important notes

Changelog

v1.1.0

v1.0.1

v1.0.0