make the change detection for the markdown preview a bit nicer
some tests