Skip to content

已上线官方插件库。用于渲染markdown的APEX插件。支持代码高亮,数学公式,目录,媒体文件,图表等语法。APEX Region Plugin for markdown display.Support code highlight, mathematical formula, catolog, media,diagrams.

License

Notifications You must be signed in to change notification settings

TjFish/markdown-region

Repository files navigation

Markdown-Region

APEX Region Plugin MarkDown Display. Support code highlight, MathJax, [TOC], anchor,video and audio,sequence diagrams.demo is available here

Features

  • converting static Markdown to the HTML
  • support code highlight
  • support MathJax
  • support catalog [TOC] and anchor
  • support video/audio
  • support sequence diagrams
  • easily customizable with JavaScript Initialization Code attribute

DEMO

demo is available here

Install

Import plugin file region_type_plugin_com_tjfish_apex_markdownregion.sql from source directory.

Settings

highlight style

You can change the default style for code highlight. The support style are list

  • androidstudio
  • dark
  • default
  • github
  • github-gist
  • lightfair
  • vs2015
  • xcode

Showdown-options

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;
}

Usage

  • Create Region Markdown Region

  • Put Markdown code into the static source of the region.

  • Run and see it

usage

Notes

This plugin is based on https://github.com/mgoricki/apex-plugin-markdown-region. If you want to kown more see this

The used syntax highlighter is highlight.js with the default set of 32 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 (189 available) then you can create your custom highlight.js package, rename it to the same file name used in the plugin and upload it to the plugin files. you can also add your css styles by the way

About

已上线官方插件库。用于渲染markdown的APEX插件。支持代码高亮,数学公式,目录,媒体文件,图表等语法。APEX Region Plugin for markdown display.Support code highlight, mathematical formula, catolog, media,diagrams.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages