I did not get mylyin to work with custom extensions. Anyone else interested in such a fature I switched to bliki, there are some example how to extend the parser: bliki. i.e.: public class SampleTag extends NowikiTag implements INoBodyParsingTag { private final static String HEADER = "<div id=\"sample\">\n" + "<a...