@Override public int processLineContent(String line, int offset) { if (blockLineNumber++ > 0) { setClosed(true); return 0; } if (!getMarkupLanguage().isFilterGenerativeContents()) { SortedMap<String, String> glossary = new TreeMap<String, String>(state.getGlossaryTerms()); builder.beginBlock(BlockType.DEFINITION_LIST, new Attributes(null, null, style == null ? null : "list-style: " + style, null)); //$NON-NLS-1$ Attributes nullAttributes = new Attributes(); for (Map.Entry<String, String> ent : glossary.entrySet()) { builder.beginBlock(BlockType.DEFINITION_TERM, nullAttributes); builder.characters(ent.getKey()); builder.endBlock(); builder.beginBlock(BlockType.DEFINITION_ITEM, nullAttributes); builder.characters(ent.getValue()); builder.endBlock(); } builder.endBlock(); } return -1; }