Handle IDs on heading markdown.