You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2019/04/19 23:14:08 UTC

[lucene-solr] branch branch_8x updated: Update flexmark to latest version

This is an automated email from the ASF dual-hosted git repository.

uschindler pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/branch_8x by this push:
     new 0ba2d58  Update flexmark to latest version
0ba2d58 is described below

commit 0ba2d583717bbde64ba9757f999f31aa3decb882
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Sat Apr 20 01:12:51 2019 +0200

    Update flexmark to latest version
---
 lucene/common-build.xml                                | 2 +-
 lucene/tools/src/groovy/install-markdown-filter.groovy | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lucene/common-build.xml b/lucene/common-build.xml
index ca9e0b4..1fd3a33 100644
--- a/lucene/common-build.xml
+++ b/lucene/common-build.xml
@@ -2478,7 +2478,7 @@ ${ant.project.name}.test.dependencies=${test.classpath.list}
   </target>
 
   <target name="resolve-markdown" unless="markdown.loaded" depends="resolve-groovy">
-    <property name="flexmark.version" value="0.16.1"/>
+    <property name="flexmark.version" value="0.42.6"/>
     <ivy:cachepath transitive="true" resolveId="flexmark" pathid="markdown.classpath">
       <ivy:dependency org="com.vladsch.flexmark" name="flexmark" rev="${flexmark.version}" conf="default" />
       <ivy:dependency org="com.vladsch.flexmark" name="flexmark-ext-autolink" rev="${flexmark.version}" conf="default" />
diff --git a/lucene/tools/src/groovy/install-markdown-filter.groovy b/lucene/tools/src/groovy/install-markdown-filter.groovy
index 2b5544b..bd5ceb3 100644
--- a/lucene/tools/src/groovy/install-markdown-filter.groovy
+++ b/lucene/tools/src/groovy/install-markdown-filter.groovy
@@ -22,7 +22,7 @@
 import org.apache.tools.ant.AntTypeDefinition;
 import org.apache.tools.ant.ComponentHelper;
 import org.apache.tools.ant.filters.TokenFilter.ChainableReaderFilter;
-import com.vladsch.flexmark.ast.Node;
+import com.vladsch.flexmark.util.ast.Document;
 import com.vladsch.flexmark.ast.Heading;
 import com.vladsch.flexmark.html.HtmlRenderer;
 import com.vladsch.flexmark.parser.Parser;
@@ -40,7 +40,7 @@ public final class MarkdownFilter extends ChainableReaderFilter {
     options.set(Parser.EXTENSIONS, [ AbbreviationExtension.create(), AutolinkExtension.create() ]);
     options.set(HtmlRenderer.RENDER_HEADER_ID, true);
     options.set(HtmlRenderer.MAX_TRAILING_BLANK_LINES, 0);
-    Node parsed = Parser.builder(options).build().parse(markdownSource);
+    Document parsed = Parser.builder(options).build().parse(markdownSource);
 
     StringBuilder html = new StringBuilder('<html>\n<head>\n');
     CharSequence title = parsed.getFirstChildAny(Heading.class)?.getText();