Skip to content

Commit

Permalink
Update asciidoc-extension to Asciidoctor 3.0.0
Browse files Browse the repository at this point in the history
However, we need to wait until the plugin itself supports 3.0.0
before we can merge this.
  • Loading branch information
leonard84 committed Dec 19, 2024
1 parent f5f2e11 commit 00ccb5b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.spockframework.plugins.asciidoctor;

import org.asciidoctor.ast.ContentNode;
import org.asciidoctor.ast.PhraseNode;
import org.asciidoctor.ast.StructuralNode;
import org.asciidoctor.extension.InlineMacroProcessor;
import org.asciidoctor.extension.Name;

Expand All @@ -11,8 +13,7 @@
public class SpockIssueInlineMacroProcessor extends InlineMacroProcessor {

@Override
public Object process(
ContentNode parent, String target, Map<String, Object> attributes) {
public PhraseNode process(StructuralNode parent, String target, Map<String, Object> attributes) {

String href = parent.getDocument().getAttribute("github-base") + "/issues/" + target;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.spockframework.plugins.asciidoctor;

import org.asciidoctor.ast.ContentNode;
import org.asciidoctor.ast.PhraseNode;
import org.asciidoctor.ast.StructuralNode;
import org.asciidoctor.extension.InlineMacroProcessor;
import org.asciidoctor.extension.Name;

Expand All @@ -11,8 +13,7 @@
public class SpockPullInlineMacroProcessor extends InlineMacroProcessor {

@Override
public Object process(
ContentNode parent, String target, Map<String, Object> attributes) {
public PhraseNode process(StructuralNode parent, String target, Map<String, Object> attributes) {

String href = parent.getDocument().getAttribute("github-base") + "/pull/" + target;

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
asciidoctorj = '2.5.13'
asciidoctorj = '3.0.0'
groovy2 = '2.5.23'
groovy3 = '3.0.23'
groovy4 = '4.0.24'
Expand Down

0 comments on commit 00ccb5b

Please sign in to comment.