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:13:07 UTC

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

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

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


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

commit 52090c9b119699e32a84ffa581794d5109f9d9c0
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 8d0c106..0d725d8 100644
--- a/lucene/common-build.xml
+++ b/lucene/common-build.xml
@@ -2387,7 +2387,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();