Created
December 11, 2017 02:02
-
-
Save kuwa72/89580f3f6a81e86093bb36d886951148 to your computer and use it in GitHub Desktop.
User script: Markdown highlighting in Redmine wiki.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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