Skip to content

Commit

Permalink
Moved functions back to the ContentNode.
Browse files Browse the repository at this point in the history
Added entry to CHANGELOG.adoc
Moved context functions to StructuralNode
  • Loading branch information
RayOffiah committed Dec 10, 2023
1 parent e6298f0 commit 987876c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ For a detailed view of what has changed, refer to the {url-repo}/commits/main[co
=== Breaking changes

Improvement::

* Add `setContext` function to StructuralNode. Move `getContext`
* Fix Macro APIs to take StructuralNodes and return Phrase- or StructuralNodes. (#1084)
* Allow Preprocessor extensions to create new Readers and replace the original Reader. (#1081)
* Set Java 11 as the minimal version (#1151) (@abelsromero)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public interface ContentNode {

String getContext();

void setContext(String context);

Document getDocument();

boolean isInline();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public String getContext() {
return getString("context");
}

@Override
public void setContext(String context) { setString("context", context); }

@Override
public ContentNode getParent() {
Expand Down

0 comments on commit 987876c

Please sign in to comment.