Attributes attributes = attributes().attribute("version", "1.0.0").compatMode(CompatMode.LEGACY).get();
String content = asciidoctor.render("The `AsciiDoc {version}` project.", OptionsBuilder.options().attributes(attributes));
Document doc = Jsoup.parse(content, "UTF-8");
Element code = doc.getElementsByTag("code").first();
assertThat(code.text(), containsString("{version}"));
}