Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
robinst committed Sep 12, 2024
1 parent de53b03 commit e3e38ef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions commonmark/src/main/java/org/commonmark/renderer/NodeRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,19 @@ public interface NodeRenderer {
*/
void render(Node node);

/**
* Called before the root node is rendered, to do any initial processing at the start.
*
* @param rootNode the root (top-level) node
*/
default void beforeRoot(Node rootNode) {
}

/**
* Called after the root node is rendered, to do any final processing at the end.
*
* @param rootNode the root (top-level) node
*/
default void afterRoot(Node rootNode) {
}
}

0 comments on commit e3e38ef

Please sign in to comment.