|
Hi,
So I have a .adoc document, that I am rendering as html using java APIs. But the styling is not getting rendered. I have tried using :linkcss: as well as the following.
:stylesdir: mystylesheets/
:stylesheet: mystyles.css
But still there is no styling in my rendered page.
My code is as follows: Attributes attributes = new Attributes();
Options options = new Options();
options.setAttributes(attributes);
options.setInPlace(true);
router.get("/readme.html").handler( ctx -> {
String html = asciidoctor.convert(
getDocFileContent(),
options);
ctx.response().end(html);
});
I am using a sample readme.adoc file, the content is getting loaded, but the default embedded styling is not rendered. Can somebody please help me regarding this.
My sample.adoc file:
== Base Verticle
This document is a reference guide for using the Base verticle as well as the utilities provided by it.
[cols="2,1,4",options="header"]
|===
| Property | Required| Description
|PROPERTY1
|Yes
|random remarks
|PROPERTY2
|No
|random1 remarks
|