From f96eb3440b6f0af0524197210c49de0e45775adf Mon Sep 17 00:00:00 2001 From: realitygaps Date: Mon, 12 Nov 2018 20:23:18 +0100 Subject: Initial commit --- plugin.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 plugin.rb (limited to 'plugin.rb') diff --git a/plugin.rb b/plugin.rb new file mode 100644 index 0000000..e0cbd8d --- /dev/null +++ b/plugin.rb @@ -0,0 +1,15 @@ +# name: embed-codimd +# about: Embed codimd pads using Onebox. Based on https://github.com/fuerst/embed-etherpad-lite +# version: 0.1 +# author: realitygaps +# url: https://lab.libreho.st/librehosters/embed-codimd + +class Onebox::Engine::CodimdOnebox + include Onebox::Engine + #we only want to match for a specific codimd domain + matches_regexp /pad.libreho.st/ + + def to_html + "
Goto this Pad" + end +end -- cgit v1.2.3