Skip to content

Commit

Permalink
Added entry to CHANGELOG.adoc
Browse files Browse the repository at this point in the history
Moved context functions to StructuralNode
  • Loading branch information
RayOffiah committed Dec 9, 2023
1 parent e6298f0 commit 099fe39
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
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 @@ -16,7 +16,7 @@ public interface ContentNode {

ContentNode getParent();

String getContext();


Document getDocument();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ public interface StructuralNode extends ContentNode {
String getTitle();
void setTitle(String title);

String getContext();

void setContext(String context);

String getCaption();
void setCaption(String caption);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ public void setId(String id) {
setString("id", id);
}

@Override
public String getContext() {
return getString("context");
}


@Override
public ContentNode getParent() {
return NodeConverter.createASTNode(getRubyProperty("parent"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ public StructuralNodeImpl(IRubyObject blockDelegate) {
super(blockDelegate);
}

@Override
public String getContext() {
return getString("context");
}

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

@Override
public String getTitle() {
return getString("title");
Expand Down

0 comments on commit 099fe39

Please sign in to comment.