mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
minor refactor around newer flex parser
This commit is contained in:
@@ -37,11 +37,20 @@
|
||||
<artifactId>logback-classic</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.vladsch.flexmark</groupId>
|
||||
<artifactId>flexmark-ext-yaml-front-matter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.vladsch.flexmark</groupId>
|
||||
<artifactId>flexmark-html2md-converter</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-api</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-core</artifactId>
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package io.nosqlbench.nb.api.markdown;
|
||||
|
||||
import com.vladsch.flexmark.ext.yaml.front.matter.YamlFrontMatterExtension;
|
||||
import com.vladsch.flexmark.html2md.converter.FlexmarkHtmlConverter;
|
||||
import com.vladsch.flexmark.parser.Parser;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class FlexParser {
|
||||
public static Parser parser = Parser.builder().extensions(List.of(YamlFrontMatterExtension.create())).build();
|
||||
public static FlexmarkHtmlConverter converter = FlexmarkHtmlConverter.builder().build();
|
||||
}
|
||||
Reference in New Issue
Block a user