public void executeMacro()

in src/main/java/org/apache/maven/doxia/DefaultConverter.java [239:251]


            public void executeMacro(String id, MacroRequest request, Sink sink)
                    throws MacroExecutionException, MacroNotFoundException {
                // filter out internal parameters but keep original order
                Map<String, Object> parameters = request.getParameters().entrySet().stream()
                        .filter(e -> !MacroRequest.isInternalParameter(e.getKey()))
                        .collect(Collectors.toMap(
                                Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));

                // the format of macros differs between the parser implementations
                // (https://maven.apache.org/doxia/macros/index.html)
                String macro = macroFormatter.format(id, parameters);
                sink.rawText(macro);
            }