Convert references to list item keys for wiki markup