You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move sprite image wmd-buttons.png as data URI to the css file (this helps to move plugin files to a webserver without breaking the image - no relative paths possible under APEX 4.2)
Add class rendered to rendered elements to avoid double conversion
New dynamic action component event: Preview Refreshed [Markdown]
This can be used to trigger some additional action on your page
Attention: If you try to modify the rendered HTML in the preview directly after it was refreshed, then you will break the preview functionality; Please use for this cases the Post Conversion Function (see description below)
New option Pre Conversion Function: If you configure here a JavaScript function, this function will get in the first paramater the raw Markdown text and must return the modified Markdown text, which will be send then to the converter
Example: function (text) { return "# Converted text follows\n\n" + text; /*add a level 1 header*/ }
New option Post Conversion Function: If you configure here a JavaScript function, this function will get in the first paramater the rendered HTML text and must return the modified HTML text, which will be send then to the preview container
Example: function (text) { return text + "<br>\n**This is not bold, because it was added after the conversion**"; }
Update to highlight.js 9.9.0 with the default set of 22 common languages: Apache, Bash, C#, C++, CSS, CoffeeScript, Diff, HTML-XML, HTTP, Ini, JSON, Java, JavaScript, Makefile, Markdown, Nginx, Objective-C, PHP, Perl, Python, Ruby, SQL - if you need more or other languages (172 available) then you can create your own custom highlight.js package under highlightjs.org/download
Internal name change of created editors; You can now easily force the preview refresh after procedural changes of your text area content - simply call this JavaScript code: markdown.editors.normalizedIdOfYourItemOrTextArea.refreshPreview() (all characters anything else then a-z, A-Z, 0-9 and _ are converted to _)
Restructure source code repository to use Grunt as build tool
Base support for YAML header - this comes from the demo app of my Markdown Reporter project and parses out the attributes title, author and date from a YAML header