using pegdown
static DataHolder OPTIONS = PegdownOptionsAdapter.flexmarkOptions(
Extensions.ALL
);
static Parser PARSER = Parser.builder(OPTIONS).build();
static HtmlRenderer RENDERER = HtmlRenderer.builder(OPTIONS).build();
The following code failed
System.out.println("here0");
Node document = PARSER.parse("<<test>>\n");
System.out.println("here1");
"<<test>>\r" failed as well.
Both "<<test>>\r\n" and "<<test>>\n\n" worked fine.
using pegdown
The following code failed
"<<test>>\r" failed as well.
Both "<<test>>\r\n" and "<<test>>\n\n" worked fine.