when-websocket-met-asciidoctor
when-websocket-met-asciidoctor copied to clipboard
Use "Document Structure" feature from asciidoctorJ
Instead of handle an author input text, it will be interested to extract those information from asciidoc source.
Then all those information could be shown on the "output side" of the webpage in order to inform all others writers.
= Sample Document
Doc Writer <[email protected]>; John Smith <[email protected]>
v1.0, 2013-05-20: First draft
:title: Sample Document
:tags: [document, example]
DocumentHeader header = asciidoctor.readDocumentHeader(...);
System.out.println(header.getDocumentTitle());
Author author = header.getAuthor();
System.out.println(author.getEmail());
System.out.println(author.getFullName());
RevisionInfo revisionInfo = header.getRevisionInfo();
i think this information will be interesting to be shown to the writer, but it may suffer some changes due the changes on Asciidoctor API. You can use it but may be deprecated in future versions on front of a new implementation.