@Test public void generateStrong() { final String result = markup.convertAsHtml("*Strong text*"); assertEquals("<strong>Strong text</strong>", result); }
@Override public String convertAsHtml(String markupString) throws IllegalArgumentException { if (markupString == null) throw new IllegalArgumentException("Can not convert " + getName() + " to HTML : the String is null"); final AttributesBuilder attributes = AttributesBuilder.attributes() .sectionNumbers(false) .noFooter(true) .tableOfContents(false) .showTitle(false) .skipFrontMatter(true) .attribute("sectids!", ""); final OptionsBuilder options = OptionsBuilder.options() .compact(true) .backend("html5") .attributes(attributes); return this.asciidoctor.convert(markupString, options).trim(); }
AsciidoctorMarkup extends AbstractMarkup { @Override public String convertAsHtml(String markupString) throws IllegalArgumentException { if (markupString == null) throw new IllegalArgumentException("Can not convert " + getName() + " to HTML : the String is null"); final AttributesBuilder attributes = AttributesBuilder.attributes() .sectionNumbers(false) .noFooter(true) .tableOfContents(false) .showTitle(false) .skipFrontMatter(true) .attribute("sectids!", ""); final OptionsBuilder options = OptionsBuilder.options() .compact(true) .backend("html5") .attributes(attributes); return this.asciidoctor.convert(markupString, options).trim(); } }
AsciidoctorMarkup extends AbstractMarkup { @Override public String convertAsHtml(String markupString) throws IllegalArgumentException { if (markupString == null) throw new IllegalArgumentException("Can not convert " + getName() + " to HTML : the String is null"); final AttributesBuilder attributes = AttributesBuilder.attributes() .sectionNumbers(false) .noFooter(true) .tableOfContents(false) .showTitle(false) .skipFrontMatter(true) .attribute("sectids!", ""); final OptionsBuilder options = OptionsBuilder.options() .compact(true) .backend("html5") .attributes(attributes); return this.asciidoctor.convert(markupString, options).trim(); } AsciidoctorMarkup(); }
AsciidoctorMarkup extends AbstractMarkup { @Override public String convertAsHtml(String markupString) throws IllegalArgumentException { if (markupString == null) throw new IllegalArgumentException("Can not convert " + getName() + " to HTML : the String is null"); final AttributesBuilder attributes = AttributesBuilder.attributes() .sectionNumbers(false) .noFooter(true) .tableOfContents(false) .showTitle(false) .skipFrontMatter(true) .attribute("sectids!", ""); final OptionsBuilder options = OptionsBuilder.options() .compact(true) .backend("html5") .attributes(attributes); return this.asciidoctor.convert(markupString, options).trim(); } AsciidoctorMarkup(); @Override String convertAsHtml(String markupString); }
AsciidoctorMarkup extends AbstractMarkup { @Override public String convertAsHtml(String markupString) throws IllegalArgumentException { if (markupString == null) throw new IllegalArgumentException("Can not convert " + getName() + " to HTML : the String is null"); final AttributesBuilder attributes = AttributesBuilder.attributes() .sectionNumbers(false) .noFooter(true) .tableOfContents(false) .showTitle(false) .skipFrontMatter(true) .attribute("sectids!", ""); final OptionsBuilder options = OptionsBuilder.options() .compact(true) .backend("html5") .attributes(attributes); return this.asciidoctor.convert(markupString, options).trim(); } AsciidoctorMarkup(); @Override String convertAsHtml(String markupString);  }