@Override public Set<NodeFormattingHandler<?>> getNodeFormattingHandlers() { return new HashSet<NodeFormattingHandler<?>>(Arrays.asList( new NodeFormattingHandler<GitLabBlockQuote>(GitLabBlockQuote.class, new CustomNodeFormatter<GitLabBlockQuote>() { @Override public void render(GitLabBlockQuote node, NodeFormatterContext context, MarkdownWriter markdown) { GitLabNodeFormatter.this.render(node, context, markdown); } }) )); }
if (nodeRenderer != null) { subContext.renderingNode = node; nodeRenderer.render(node, subContext, subContext.markdown); subContext.renderingNode = null; Node oldNode = this.renderingNode; subContext.renderingNode = node; nodeRenderer.render(node, subContext, subContext.markdown); subContext.renderingNode = oldNode; } else {
renderers.put(nodeType.getNodeType(), nodeType);
if (nodeRenderer != null) { subContext.renderingNode = node; nodeRenderer.render(node, subContext, subContext.markdown); subContext.renderingNode = null; Node oldNode = this.renderingNode; subContext.renderingNode = node; nodeRenderer.render(node, subContext, subContext.markdown); subContext.renderingNode = oldNode; } else {
renderers.put(nodeType.getNodeType(), nodeType);
@Override public Set<NodeFormattingHandler<?>> getNodeFormattingHandlers() { return new HashSet<NodeFormattingHandler<?>>(Arrays.asList( new NodeFormattingHandler<YamlFrontMatterBlock>(YamlFrontMatterBlock.class, new CustomNodeFormatter<YamlFrontMatterBlock>() { @Override public void render(YamlFrontMatterBlock node, NodeFormatterContext context, MarkdownWriter markdown) { YamlFrontMatterNodeFormatter.this.render(node, context, markdown); } }) )); }
@Override public Set<NodeFormattingHandler<?>> getNodeFormattingHandlers() { return new HashSet<NodeFormattingHandler<? extends Node>>(Arrays.asList( new NodeFormattingHandler<AdmonitionBlock>(AdmonitionBlock.class, new CustomNodeFormatter<AdmonitionBlock>() { @Override public void render(AdmonitionBlock node, NodeFormatterContext context, MarkdownWriter markdown) { AdmonitionNodeFormatter.this.render(node, context, markdown); } }) )); }
@Override public Set<NodeFormattingHandler<?>> getNodeFormattingHandlers() { return new HashSet<NodeFormattingHandler<?>>(Arrays.asList( new NodeFormattingHandler<JekyllFrontMatterBlock>(JekyllFrontMatterBlock.class, new CustomNodeFormatter<JekyllFrontMatterBlock>() { @Override public void render(JekyllFrontMatterBlock node, NodeFormatterContext context, MarkdownWriter markdown) { JekyllFrontMatterNodeFormatter.this.render(node, context, markdown); } }) )); }
@Override public Set<NodeFormattingHandler<?>> getNodeFormattingHandlers() { return new HashSet<NodeFormattingHandler<?>>(Arrays.asList( new NodeFormattingHandler<MacroReference>(MacroReference.class, new CustomNodeFormatter<MacroReference>() { @Override public void render(MacroReference node, NodeFormatterContext context, MarkdownWriter markdown) { MacrosNodeFormatter.this.render(node, context, markdown); } }), new NodeFormattingHandler<MacroDefinitionBlock>(MacroDefinitionBlock.class, new CustomNodeFormatter<MacroDefinitionBlock>() { @Override public void render(MacroDefinitionBlock node, NodeFormatterContext context, MarkdownWriter markdown) { MacrosNodeFormatter.this.render(node, context, markdown); } }) )); }
@Override public Set<NodeFormattingHandler<?>> getNodeFormattingHandlers() { return new HashSet<NodeFormattingHandler<?>>(Arrays.asList( new NodeFormattingHandler<Footnote>(Footnote.class, new CustomNodeFormatter<Footnote>() { @Override public void render(Footnote node, NodeFormatterContext context, MarkdownWriter markdown) { FootnoteNodeFormatter.this.render(node, context, markdown); } }), new NodeFormattingHandler<FootnoteBlock>(FootnoteBlock.class, new CustomNodeFormatter<FootnoteBlock>() { @Override public void render(FootnoteBlock node, NodeFormatterContext context, MarkdownWriter markdown) { FootnoteNodeFormatter.this.render(node, context, markdown); } }) )); }
@Override public Set<NodeFormattingHandler<?>> getNodeFormattingHandlers() { return new HashSet<NodeFormattingHandler<? extends Node>>(Arrays.asList( new NodeFormattingHandler<SimTocBlock>(SimTocBlock.class, new CustomNodeFormatter<SimTocBlock>() { @Override public void render(SimTocBlock node, NodeFormatterContext context, MarkdownWriter markdown) { SimTocNodeFormatter.this.render(node, context, markdown); } }), new NodeFormattingHandler<SimTocContent>(SimTocContent.class, new CustomNodeFormatter<SimTocContent>() { @Override public void render(SimTocContent node, NodeFormatterContext context, MarkdownWriter markdown) { SimTocNodeFormatter.this.render(node, context, markdown); } }) )); }
@Override public Set<NodeFormattingHandler<?>> getNodeFormattingHandlers() { return new HashSet<NodeFormattingHandler<? extends Node>>(Arrays.asList( new NodeFormattingHandler<Abbreviation>(Abbreviation.class, new CustomNodeFormatter<Abbreviation>() { @Override public void render(Abbreviation node, NodeFormatterContext context, MarkdownWriter markdown) { AbbreviationNodeFormatter.this.render(node, context, markdown); } }), new NodeFormattingHandler<AbbreviationBlock>(AbbreviationBlock.class, new CustomNodeFormatter<AbbreviationBlock>() { @Override public void render(AbbreviationBlock node, NodeFormatterContext context, MarkdownWriter markdown) { AbbreviationNodeFormatter.this.render(node, context, markdown); } }) )); }
@Override public Set<NodeFormattingHandler<?>> getNodeFormattingHandlers() { return new HashSet<NodeFormattingHandler<?>>(Arrays.asList( new NodeFormattingHandler<EnumeratedReferenceText>(EnumeratedReferenceText.class, new CustomNodeFormatter<EnumeratedReferenceText>() { @Override public void render(EnumeratedReferenceText node, NodeFormatterContext context, MarkdownWriter markdown) { EnumeratedReferenceNodeFormatter.this.render(node, context, markdown); } }), new NodeFormattingHandler<EnumeratedReferenceLink>(EnumeratedReferenceLink.class, new CustomNodeFormatter<EnumeratedReferenceLink>() { @Override public void render(EnumeratedReferenceLink node, NodeFormatterContext context, MarkdownWriter markdown) { EnumeratedReferenceNodeFormatter.this.render(node, context, markdown); } }), new NodeFormattingHandler<EnumeratedReferenceBlock>(EnumeratedReferenceBlock.class, new CustomNodeFormatter<EnumeratedReferenceBlock>() { @Override public void render(EnumeratedReferenceBlock node, NodeFormatterContext context, MarkdownWriter markdown) { EnumeratedReferenceNodeFormatter.this.render(node, context, markdown); } }) )); }
@Override public Set<NodeFormattingHandler<?>> getNodeFormattingHandlers() { HashSet<NodeFormattingHandler<?>> set = new HashSet<NodeFormattingHandler<?>>(); set.add(new NodeFormattingHandler<Emoji>(Emoji.class, new CustomNodeFormatter<Emoji>() { @Override public void render(Emoji node, NodeFormatterContext context, MarkdownWriter markdown) { EmojiNodeFormatter.this.render(node, context, markdown); } })); return set; }
@Override public Set<NodeFormattingHandler<?>> getNodeFormattingHandlers() { return new HashSet<NodeFormattingHandler<?>>(Arrays.asList( new NodeFormattingHandler<DefinitionList>(DefinitionList.class, new CustomNodeFormatter<DefinitionList>() { @Override public void render(DefinitionList node, NodeFormatterContext context, MarkdownWriter markdown) { DefinitionNodeFormatter.this.render(node, context, markdown); } }), new NodeFormattingHandler<DefinitionTerm>(DefinitionTerm.class, new CustomNodeFormatter<DefinitionTerm>() { @Override public void render(DefinitionTerm node, NodeFormatterContext context, MarkdownWriter markdown) { DefinitionNodeFormatter.this.render(node, context, markdown); } }), new NodeFormattingHandler<DefinitionItem>(DefinitionItem.class, new CustomNodeFormatter<DefinitionItem>() { @Override public void render(DefinitionItem node, NodeFormatterContext context, MarkdownWriter markdown) { DefinitionNodeFormatter.this.render(node, context, markdown); } }) )); }
@Override public Set<NodeFormattingHandler<?>> getNodeFormattingHandlers() { //noinspection unchecked return new HashSet<NodeFormattingHandler<?>>(Arrays.asList( new NodeFormattingHandler<TaskListItem>(TaskListItem.class, new CustomNodeFormatter<TaskListItem>() { @Override public void render(TaskListItem node, NodeFormatterContext context, MarkdownWriter markdown) { TaskListNodeFormatter.this.render(node, context, markdown); } }), new NodeFormattingHandler<BulletList>(BulletList.class, new CustomNodeFormatter<BulletList>() { @Override public void render(BulletList node, NodeFormatterContext context, MarkdownWriter markdown) { TaskListNodeFormatter.this.render(node, context, markdown); } }), new NodeFormattingHandler<OrderedList>(OrderedList.class, new CustomNodeFormatter<OrderedList>() { @Override public void render(OrderedList node, NodeFormatterContext context, MarkdownWriter markdown) { TaskListNodeFormatter.this.render(node, context, markdown); } }) )); }
@Override public Set<NodeFormattingHandler<?>> getNodeFormattingHandlers() { HashSet<NodeFormattingHandler<?>> set = new HashSet<NodeFormattingHandler<?>>(); set.add(new NodeFormattingHandler<AttributesNode>(AttributesNode.class, new CustomNodeFormatter<AttributesNode>() { @Override public void render(AttributesNode node, NodeFormatterContext context, MarkdownWriter markdown) { AttributesNodeFormatter.this.render(node, context, markdown); } })); set.add(new NodeFormattingHandler<AttributesDelimiter>(AttributesDelimiter.class, new CustomNodeFormatter<AttributesDelimiter>() { @Override public void render(AttributesDelimiter node, NodeFormatterContext context, MarkdownWriter markdown) { AttributesNodeFormatter.this.render(node, context, markdown); } })); return set; }
@Override public Set<NodeFormattingHandler<?>> getNodeFormattingHandlers() { return new HashSet<NodeFormattingHandler<? extends Node>>(Arrays.asList( new NodeFormattingHandler<TableBlock>(TableBlock.class, new CustomNodeFormatter<TableBlock>() { @Override public void render(TableBlock node, NodeFormatterContext context, MarkdownWriter markdown) { new NodeFormattingHandler<TableHead>(TableHead.class, new CustomNodeFormatter<TableHead>() { @Override public void render(TableHead node, NodeFormatterContext context, MarkdownWriter markdown) { new NodeFormattingHandler<TableSeparator>(TableSeparator.class, new CustomNodeFormatter<TableSeparator>() { @Override public void render(TableSeparator node, NodeFormatterContext context, MarkdownWriter markdown) { new NodeFormattingHandler<TableBody>(TableBody.class, new CustomNodeFormatter<TableBody>() { @Override public void render(TableBody node, NodeFormatterContext context, MarkdownWriter markdown) { new NodeFormattingHandler<TableRow>(TableRow.class, new CustomNodeFormatter<TableRow>() { @Override public void render(TableRow node, NodeFormatterContext context, MarkdownWriter markdown) { new NodeFormattingHandler<TableCell>(TableCell.class, new CustomNodeFormatter<TableCell>() { @Override public void render(TableCell node, NodeFormatterContext context, MarkdownWriter markdown) { new NodeFormattingHandler<TableCaption>(TableCaption.class, new CustomNodeFormatter<TableCaption>() { @Override public void render(TableCaption node, NodeFormatterContext context, MarkdownWriter markdown) {
new NodeFormattingHandler<Node>(Node.class, new CustomNodeFormatter<Node>() { @Override public void render(Node node, NodeFormatterContext context, MarkdownWriter markdown) { new NodeFormattingHandler<AutoLink>(AutoLink.class, new CustomNodeFormatter<AutoLink>() { @Override public void render(AutoLink node, NodeFormatterContext context, MarkdownWriter markdown) { new NodeFormattingHandler<BlankLine>(BlankLine.class, new CustomNodeFormatter<BlankLine>() { @Override public void render(BlankLine node, NodeFormatterContext context, MarkdownWriter markdown) { new NodeFormattingHandler<BlockQuote>(BlockQuote.class, new CustomNodeFormatter<BlockQuote>() { @Override public void render(BlockQuote node, NodeFormatterContext context, MarkdownWriter markdown) { new NodeFormattingHandler<Code>(Code.class, new CustomNodeFormatter<Code>() { @Override public void render(Code node, NodeFormatterContext context, MarkdownWriter markdown) { new NodeFormattingHandler<Document>(Document.class, new CustomNodeFormatter<Document>() { @Override public void render(Document node, NodeFormatterContext context, MarkdownWriter markdown) { new NodeFormattingHandler<Emphasis>(Emphasis.class, new CustomNodeFormatter<Emphasis>() { @Override public void render(Emphasis node, NodeFormatterContext context, MarkdownWriter markdown) { new NodeFormattingHandler<FencedCodeBlock>(FencedCodeBlock.class, new CustomNodeFormatter<FencedCodeBlock>() {
@Override public Set<NodeFormattingHandler<?>> getNodeFormattingHandlers() { return new HashSet<NodeFormattingHandler<?>>(Arrays.asList( new NodeFormattingHandler<JekyllFrontMatterBlock>(JekyllFrontMatterBlock.class, new CustomNodeFormatter<JekyllFrontMatterBlock>() { @Override public void render(JekyllFrontMatterBlock node, NodeFormatterContext context, MarkdownWriter markdown) { JekyllFrontMatterNodeFormatter.this.render(node, context, markdown); } }) )); }