public class PlaintextTest {
public void renderAndCompare(String mdFile, String txtFile) throws Exception {
StringWriter sw = new StringWriter();
try (InputStreamReader stream = new InputStreamReader(PlaintextTest.class.getResourceAsStream(mdFile))) {
Parser parser = new Parser(stream);
Document document = parser.parse();
PlaintextMarkdownVisitor emitter = new PlaintextMarkdownVisitor(new WordWrap(sw));
document.accept(emitter);
}
StringBuilder sb = new StringBuilder();