Search in sources :

Example 1 with CachedIncludePlugin

use of com.willshex.blogwt.client.markdown.plugin.CachedIncludePlugin in project blogwt by billy1380.

the class Processor method registerPlugins.

/* (non-Javadoc)
	 * 
	 * @see org.markdown4j.client.MarkdownProcessor#registerPlugins() */
@Override
protected void registerPlugins() {
    CachedIncludePlugin includePlugin = new CachedIncludePlugin(ensureManager());
    includePlugin.setProcessor(this);
    String mapsApiKey = PropertyController.get().stringProperty(PropertyHelper.MARKDOWN_MAPS_API_KEY);
    if (mapsApiKey != null && mapsApiKey.trim().length() == 0) {
        mapsApiKey = null;
    }
    registerPlugins(new WebSequencePlugin(ensureManager()), includePlugin, new GalleryPlugin(ensureManager()), mapsApiKey == null ? null : new MapPlugin(mapsApiKey, ensureManager()), new YoutubePlugin(), new FormPlugin(ensureManager()), new PostsPlugin(ensureManager()));
}
Also used : MapPlugin(com.willshex.blogwt.client.markdown.plugin.MapPlugin) GalleryPlugin(com.willshex.blogwt.client.markdown.plugin.GalleryPlugin) CachedIncludePlugin(com.willshex.blogwt.client.markdown.plugin.CachedIncludePlugin) PostsPlugin(com.willshex.blogwt.client.markdown.plugin.PostsPlugin) YoutubePlugin(com.willshex.blogwt.client.markdown.plugin.YoutubePlugin) FormPlugin(com.willshex.blogwt.client.markdown.plugin.FormPlugin) WebSequencePlugin(org.markdown4j.client.WebSequencePlugin)

Aggregations

CachedIncludePlugin (com.willshex.blogwt.client.markdown.plugin.CachedIncludePlugin)1 FormPlugin (com.willshex.blogwt.client.markdown.plugin.FormPlugin)1 GalleryPlugin (com.willshex.blogwt.client.markdown.plugin.GalleryPlugin)1 MapPlugin (com.willshex.blogwt.client.markdown.plugin.MapPlugin)1 PostsPlugin (com.willshex.blogwt.client.markdown.plugin.PostsPlugin)1 YoutubePlugin (com.willshex.blogwt.client.markdown.plugin.YoutubePlugin)1 WebSequencePlugin (org.markdown4j.client.WebSequencePlugin)1