public Boolean caseNote(Note content) {
return applyHighlighting(content, NOTE_DONE_ID, HighlightingConfiguration.NOTE_URL_ID);
}
private void markAsDone(Content content, Iterable<Tag> allTags, String doneStyle) {
Region region = Contents.region(content);
int begin = 0;
int lastTagEnd = region.getOffset();
int taskOffset = lastTagEnd;
for (Tag tag : allTags) {
int length = tag.getOffset() - begin - whiteSpaces(content, tag.getOffset());
if(length > 0){
int offset = taskOffset + begin;