APEX 18.1+ Region Plugin for converting Markdown static source to the HTML. It uses ShowdownJS converter (v1.8.6).
- converting static Markdown to the HTML
- easily customizable with JavaScript Initialization Code attribute
- v1.0.0 20180924 - Initial Release
- v1.0.1 20180926 - Support for &ITEM. substitution
- Import plugin file region_type_plugin_com_apexbyg_blogspot_markdownregion.sql from source directory
- (Optional) To optimize performance upload static files (CSS and JS) from server/nitro/dist directory to Webserver and change File Prefix to point on server directory
- (Optional) Compile package pck_markdown_region_plugin (from source directory) in DB schema (available to APEX parsing schema) and change parameter Render Function Name to pck_markdown_region_plugin.f_render
You can customize region with additional parameters by using Initialization Code attribute. Additional options are available here: https://github.com/showdownjs/showdown/wiki/Showdown-options.
Example of Initialization Code attribute:
function (options){
options.literalMidWordUnderscores = false;
options.noHeaderId = true;
return options;
}
Put Markdown code into the static source of the region.
GitHub project https://github.com/mgoricki/apex-plugin-markdown-region.
Demo is available here