The
echo
command allows you to insert the results of evaluating an
expression as text.
However, in your case, you'll want to insert the results as HTML
since you want to add links. For this, you'll need the
embed
extension. Your java code would look something like:
@RunWith(ConcordionRunner.class)
@Extensions(EmbedExtension.class)
@ConcordionOptions(declareNamespaces={"ext",
"urn:concordion-extensions:2010"})
public class MySpecFixture {
public String getLinks() {
return "<a href="...">link1<a/>";
}
}
with the markdown spec something like:
[link](-
"ext:embed=getLinks()")
There's a bit of documentation about this
here.
Let us know if this solves it for you, and we'll add more details
of this to the main documentation.