add multiline link pattern support