Java Code Examples for com.vladsch.flexmark.html.HtmlRenderer#Builder
The following examples show how to use
com.vladsch.flexmark.html.HtmlRenderer#Builder .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LinkRendererExtension.java From jphp with Apache License 2.0 | 6 votes |
@Override public void extend(HtmlRenderer.Builder rendererBuilder, String rendererType) { rendererBuilder.linkResolverFactory(new LinkResolverFactory() { @Override public Set<Class<? extends LinkResolverFactory>> getAfterDependents() { return null; } @Override public Set<Class<? extends LinkResolverFactory>> getBeforeDependents() { return null; } @Override public boolean affectsGlobalScope() { return false; } @Override public LinkResolver create(LinkResolverContext context) { return linkResolver; } }); }
Example 2
Source File: MarkExtension.java From OmniList with GNU Affero General Public License v3.0 | 5 votes |
@Override public void extend(HtmlRenderer.Builder rendererBuilder, String rendererType) { switch (rendererType) { case "HTML": rendererBuilder.nodeRendererFactory(new NodeRendererFactory() { @Override public NodeRenderer create(DataHolder options) { return new MarkNodeRenderer(options); } }); break; } }
Example 3
Source File: MathJaxExtension.java From OmniList with GNU Affero General Public License v3.0 | 5 votes |
@Override public void extend(HtmlRenderer.Builder rendererBuilder, String rendererType) { switch (rendererType) { case "HTML": rendererBuilder.nodeRendererFactory(new NodeRendererFactory() { @Override public NodeRenderer create(DataHolder options) { return new MathJaxNodeRenderer(options); } }); break; } }
Example 4
Source File: KeystrokeExtension.java From MarkdownView with Apache License 2.0 | 5 votes |
@Override public void extend(HtmlRenderer.Builder rendererBuilder, String rendererType) { switch (rendererType) { case "HTML": rendererBuilder.nodeRendererFactory(new KeystrokeNodeRenderer.Factory()); break; } }
Example 5
Source File: MarkExtension.java From MarkdownView with Apache License 2.0 | 5 votes |
@Override public void extend(HtmlRenderer.Builder rendererBuilder, String rendererType) { switch (rendererType) { case "HTML": rendererBuilder.nodeRendererFactory(new NodeRendererFactory() { @Override public NodeRenderer create(DataHolder options) { return new MarkNodeRenderer(options); } }); break; } }
Example 6
Source File: MathJaxExtension.java From MarkdownView with Apache License 2.0 | 5 votes |
@Override public void extend(HtmlRenderer.Builder rendererBuilder, String rendererType) { switch (rendererType) { case "HTML": rendererBuilder.nodeRendererFactory(new NodeRendererFactory() { @Override public NodeRenderer create(DataHolder options) { return new MathJaxNodeRenderer(options); } }); break; } }
Example 7
Source File: LabelExtension.java From MarkdownView with Apache License 2.0 | 5 votes |
@Override public void extend(HtmlRenderer.Builder rendererBuilder, String rendererType) { switch (rendererType) { case "HTML": rendererBuilder.nodeRendererFactory(new LabelNodeRenderer.Factory()); break; } }
Example 8
Source File: BeanExtension.java From MarkdownView with Apache License 2.0 | 5 votes |
@Override public void extend(HtmlRenderer.Builder rendererBuilder, String rendererType) { switch (rendererType) { case "HTML": rendererBuilder.nodeRendererFactory(new BeanNodeRenderer.Factory()); break; } }
Example 9
Source File: EmojiExtension.java From onedev with MIT License | 4 votes |
@Override public void extend(HtmlRenderer.Builder rendererBuilder, String rendererType) { rendererBuilder.nodeRendererFactory(new EmojiNodeRenderer.Factory()); }
Example 10
Source File: TwitterExtension.java From MarkdownView with Apache License 2.0 | 4 votes |
@Override public void extend(HtmlRenderer.Builder rendererBuilder, String rendererType) { if (rendererType.equals("HTML")) { rendererBuilder.nodeRendererFactory(new TwitterNodeRenderer.Factory()); } }
Example 11
Source File: EmojiExtension.java From MarkdownView with Apache License 2.0 | 4 votes |
@Override public void extend(HtmlRenderer.Builder rendererBuilder, String rendererType) { if (rendererType.equals("HTML")) { rendererBuilder.nodeRendererFactory(new EmojiNodeRenderer.Factory()); } }
Example 12
Source File: VideoLinkExtension.java From MarkdownView with Apache License 2.0 | 4 votes |
@Override public void extend(HtmlRenderer.Builder rendererBuilder, String rendererType) { if (rendererType.equals("HTML")) { rendererBuilder.nodeRendererFactory(new VideoLinkNodeRenderer.Factory()); } }
Example 13
Source File: UMLExtension.java From zeppelin with Apache License 2.0 | 4 votes |
@Override public void extend(HtmlRenderer.Builder rendererBuilder, String rendererType) { rendererBuilder.nodeRendererFactory(new UMLNodeRenderer.Factory()); }
Example 14
Source File: AttributesExtension.java From markdown-page-generator-plugin with MIT License | 4 votes |
@Override public void extend(HtmlRenderer.Builder rendererBuilder, String rendererType) { rendererBuilder.attributeProviderFactory(new FlexmarkAttributeProvider.Factory()); }
Example 15
Source File: PageGeneratorExtension.java From markdown-page-generator-plugin with MIT License | 4 votes |
@Override public void extend(HtmlRenderer.Builder rendererBuilder, String rendererType) { rendererBuilder.linkResolverFactory(new FlexmarkLinkResolver.Factory()); }