diff --git a/lucene/common-build.xml b/lucene/common-build.xml index ca9e0b41018..1fd3a3359b6 100644 --- a/lucene/common-build.xml +++ b/lucene/common-build.xml @@ -2478,7 +2478,7 @@ ${ant.project.name}.test.dependencies=${test.classpath.list} - + diff --git a/lucene/tools/src/groovy/install-markdown-filter.groovy b/lucene/tools/src/groovy/install-markdown-filter.groovy index 2b5544b99e6..bd5ceb3ca4a 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('\n\n'); CharSequence title = parsed.getFirstChildAny(Heading.class)?.getText();