package com.atlassian.confluence.extra.graphviz;

import com.atlassian.renderer.RenderContext;
import com.atlassian.renderer.v2.macro.MacroException;

import java.util.Map;

public class GraphVizMacro
        extends BaseGraphVizMacro
{
    /**
     * Render a {graphviz} macro.
     * <p/>
     * The body of the macro is passed to dot as the entire input.
     */
    public String execute(Map parameters, String body, RenderContext renderContext) throws MacroException
    {
        return GraphVizHelper.generateGraph(body.trim(),0,0, subRenderer, renderContext);
    }

}
