Login  Register

Re: Asciidoctor as content managment

Posted by smigielski on Oct 08, 2013; 9:45pm
URL: https://discuss.asciidoctor.org/Asciidoctor-as-content-managment-tp723p767.html

Actually it wasn't that bad. You can take a look of my changes in branch in github:

https://github.com/smigielski/asciidoctor-java-integration/tree/structureddocuments

https://github.com/smigielski/asciidoctor-java-integration/commit/051ad97ef1efc30a466a3a20230901581a81fcf3


The only problem I had was with the lists that is defined as a block in asciidoc file. Instead of getting content of that block I was getting the list of ListItem because List class overwrites content function. I don't know if it is by purpose or by mistake so I've just render that block into string.

I've also write some test for this feature but I'm not an expert in asciidoc so if you think some more is necessary just suggest what else should be checked.

Cheers,
Marek