All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vladsch.flexmark.formatter.NodeFormattingHandler Maven / Gradle / Ivy

There is a newer version: 0.50.50
Show newest version
package com.vladsch.flexmark.formatter;

import com.vladsch.flexmark.util.ast.Node;
import com.vladsch.flexmark.util.ast.NodeAdaptingVisitHandler;

public class NodeFormattingHandler extends NodeAdaptingVisitHandler> implements CustomNodeFormatter {
    public NodeFormattingHandler(Class aClass, CustomNodeFormatter adapter) {
        super(aClass, adapter);
    }

    @Override
    public void render(Node node, NodeFormatterContext context, MarkdownWriter markdown) {
        //noinspection unchecked
        myAdapter.render((N) node, context, markdown);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy