Skip to content

Instantly share code, notes, and snippets.

@kuwa72
Created December 11, 2017 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuwa72/89580f3f6a81e86093bb36d886951148 to your computer and use it in GitHub Desktop.
Save kuwa72/89580f3f6a81e86093bb36d886951148 to your computer and use it in GitHub Desktop.
User script: Markdown highlighting in Redmine wiki.
(function() {
'use strict';
// Your code here...
var loading = '<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">';
$('head').append(loading);
$.getScript("https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js", () => {var simplemde = new SimpleMDE({ element: $("#content textarea")[0] });});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment