Revision | 99 (tree) |
---|---|
Zeit | 2019-09-28 11:15:22 |
Autor | hirukawa_ryo |
* flexmark-ext-highlight 0.2.3
flexmark 0.40.24 → flexmark 0.50.40 に変更しました。flexmarkのパッケージ名やメソッド名などAPIに変更があったため下位互換性を失っています。
@@ -1,13 +1,13 @@ | ||
1 | 1 | package net.osdn.blogs.flexmark.ext.highlight; |
2 | 2 | |
3 | -import com.vladsch.flexmark.Extension; | |
4 | 3 | import com.vladsch.flexmark.html.HtmlRenderer; |
5 | 4 | import com.vladsch.flexmark.html.HtmlRenderer.Builder; |
6 | 5 | import com.vladsch.flexmark.html.renderer.NodeRenderer; |
7 | 6 | import com.vladsch.flexmark.html.renderer.NodeRendererFactory; |
8 | -import com.vladsch.flexmark.util.options.DataHolder; | |
9 | -import com.vladsch.flexmark.util.options.DataKey; | |
10 | -import com.vladsch.flexmark.util.options.MutableDataHolder; | |
7 | +import com.vladsch.flexmark.util.builder.Extension; | |
8 | +import com.vladsch.flexmark.util.data.DataHolder; | |
9 | +import com.vladsch.flexmark.util.data.DataKey; | |
10 | +import com.vladsch.flexmark.util.data.MutableDataHolder; | |
11 | 11 | |
12 | 12 | public class HighlightExtension implements HtmlRenderer.HtmlRendererExtension { |
13 | 13 | public static final DataKey<Boolean> REPLACE_YEN_SIGN = new DataKey<>("REPLACE_YEN_SIGN", true); |
@@ -27,7 +27,7 @@ | ||
27 | 27 | public void extend(Builder rendererBuilder, String rendererType) { |
28 | 28 | rendererBuilder.nodeRendererFactory(new NodeRendererFactory() { |
29 | 29 | @Override |
30 | - public NodeRenderer create(DataHolder options) { | |
30 | + public NodeRenderer apply(DataHolder options) { | |
31 | 31 | return new HighlightRenderer(options); |
32 | 32 | } |
33 | 33 | }); |
@@ -18,7 +18,7 @@ | ||
18 | 18 | import com.vladsch.flexmark.html.renderer.NodeRendererContext; |
19 | 19 | import com.vladsch.flexmark.html.renderer.NodeRenderingHandler; |
20 | 20 | import com.vladsch.flexmark.parser.Parser; |
21 | -import com.vladsch.flexmark.util.options.DataHolder; | |
21 | +import com.vladsch.flexmark.util.data.DataHolder; | |
22 | 22 | import com.vladsch.flexmark.util.sequence.BasedSequence; |
23 | 23 | |
24 | 24 | public class HighlightRenderer implements NodeRenderer { |