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

com.vladsch.flexmark.parser.PostProcessor Maven / Gradle / Ivy

Go to download

Core of flexmark-java (implementation of CommonMark for parsing markdown and rendering to HTML)

The newest version!
package com.vladsch.flexmark.parser;

import com.vladsch.flexmark.util.ast.Document;
import com.vladsch.flexmark.util.ast.Node;
import com.vladsch.flexmark.util.ast.NodeTracker;
import org.jetbrains.annotations.NotNull;

public interface PostProcessor {
    /**
     * @param document the node to post-process
     * @return the result of post-processing, may be a modified {@code document} argument
     */
    @NotNull Document processDocument(@NotNull Document document);

    /**
     * @param state node tracker used for optimizing node processing
     * @param node  the node to post-process
     */
    void process(@NotNull NodeTracker state, @NotNull Node node);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy