Skip to content
Snippets Groups Projects
Forked from librehosters / embed-codimd
Loading
how's avatar
how authored
- Tighten URL regular expression to match https://pad.libreho.st/
- See [CHANGELOG](../CHANGELOG.md)

See merge request !1
20a07397
Name Last commit Last update
CHANGELOG.md
LICENSE
README.md
plugin.rb

Embed codimd pads into Discourse for libreho.st

This allows you to embed libreho.st pads into discourse. It is based on https://github.com/fuerst/embed-etherpad-lite which embeds pads into posts using the Onebox mechanism.

Usage

This is meant to use with https://talk.libreho.st. You need to fork and adapt to your case.

After installation just insert codimd links into your Discourse posts or comments. The pad will be embedded using the famous and beloved IFRAME tag and is fully operational.

Installation

Read Install a Plugin at meta.discourse.org.

The configuration line you have to add to your container's app.yml file looks like:

- git clone https://lab.libreho.st/librehosters/embed-codimd.git

Details

The plugin uses the "Brand new plugin interface" to change URL's like http(s)://domain.example/pad-id into HTML code like <iframe src='http(s)://domain.example/pad-id'></iframe>.