Closing and reopening the database did the trick! Deselecting and reselecting the file seems to be insufficient in my case. I tried several times with different files.
A follow-up question: I would like all documents except Markdown that are added to the database in the future to be excluded from wiki linking automatically. However, there doesn’t seem to be a Smart Rule action to make this happen.
For now, I’ve created a Smart Group and set an alert to remind me to check the “Exclude from Wiki Linking” check box.
Is there a script or workaround to automate this? If not, I would like to add this as a feature request.
@cgrunenberg Surprisingly there’s no AppleScript property to exclude WikiLinks:
exclude from classification - Exclude group or record from classifying.
exclude from search - Exclude group or record from searching.
exclude from see also - Exclude record from see also.
exclude from tagging - Exclude group from tagging.
So at the moment it’s not possible to automate the process.
There’s no built-in Smart Rule but exclude from Wiki linking is now available.
-- Smart Rule - Exclude from Wiki linking
tell application id "DNtp"
repeat with thisRecord in theRecords
set exclude from Wiki linking of thisRecord to true
on error error_message number error_number
if the error_number is not -128 then display alert "DEVONthink" message error_message as warning