Fix invalid search for last actial embedded *.md doc

@tavriaforever @gela-d