finished correct parsing/replacement of ID-links + tests