2014. 06. 18.
First I did convert my SmallMark implementation written in D to Java code. It was not a hard task, the most annoying thing was to convert every dynamic array in D to Java List instances and call the proper methods. This was the boring part.
It was obvious to me that I will create a Document interface which can be used to determine the actions available and the Processor to be used for rendering. The Processor is also an interface with one method. It converts the input text to the HTML to preview. So these sources look like this: