private void render(HardLineBreak node, NodeRendererContext context, HtmlWriter html) { //html.raw("\\\\"); html.line(); }
private void render(HardLineBreak node, NodeRendererContext context, HtmlWriter html) { //html.raw("\\\\"); html.line(); }
private static void renderTextBlockParagraphLines(Node node, NodeRendererContext context, HtmlWriter html) { context.renderChildren(node); html.line(); }
private static void renderTextBlockParagraphLines(Node node, NodeRendererContext context, HtmlWriter html) { context.renderChildren(node); html.line(); }
public void flush() { htmlWriter.line().flush(); }
private void render(ThematicBreak node, NodeRendererContext context, HtmlWriter html) { html.line().raw("----").blankLine(); }
private void render(FencedCodeBlock node, NodeRendererContext context, HtmlWriter html) { BasedSequence info = node.getInfo(); if (info.isNotNull() && !info.isBlank()) { html.line().raw("{code:lang=" + info.unescape() + "}").line(); } else { html.line().raw("{code}").line(); } html.raw(node.getContentChars().normalizeEOL()); html.line().raw("{code}").blankLine(); }
private void render(FencedCodeBlock node, NodeRendererContext context, HtmlWriter html) { BasedSequence info = node.getInfo(); if (info.isNotNull() && !info.isBlank()) { html.line().raw("{code:lang=" + info.unescape() + "}").line(); } else { html.line().raw("{code}").line(); } html.raw(node.getContentChars().normalizeEOL()); html.line().raw("{code}").blankLine(); }
private void renderLooseParagraph(final Paragraph node, final NodeRendererContext context, final HtmlWriter html) { renderTextBlockParagraphLines(node, context, html); if (inBlockQuote > 0 && node.getNext() == null) { html.line(); } else { html.blankLine(); } }
private void renderLooseParagraph(final Paragraph node, final NodeRendererContext context, final HtmlWriter html) { renderTextBlockParagraphLines(node, context, html); if (inBlockQuote > 0 && node.getNext() == null) { html.line(); } else { html.blankLine(); } }
private void render(Heading node, NodeRendererContext context, HtmlWriter html) { html.line().raw("h" + node.getLevel() + ". "); context.renderChildren(node); html.blankLine(); }
private void render(Heading node, NodeRendererContext context, HtmlWriter html) { String s = repeat("=", node.getLevel()); html.line().raw(s); context.renderChildren(node); html.raw(s).blankLine(); }
private void renderLooseParagraph(final Paragraph node, final NodeRendererContext context, final HtmlWriter html) { if (context.getHtmlOptions().noPTagsUseBr) { renderTextBlockParagraphLines(node, context, html, false); html.tagVoid("br").tagVoid("br").line(); } else { html.srcPosWithEOL(node.getChars()).withAttr().tagLine("p", new Runnable() { @Override public void run() { renderTextBlockParagraphLines(node, context, html, false); } }); } }
private void render(BlockQuote node, NodeRendererContext context, HtmlWriter html) { inBlockQuote++; String repeat = repeat(">", inBlockQuote) + " "; html.line().setPrefix("").raw(repeat); html.setPrefix(repeat); context.renderChildren(node); inBlockQuote--; if (inBlockQuote > 0) { html.setPrefix(repeat(">", inBlockQuote) + " "); } else { html.setPrefix(""); } html.blankLine(); }