So the ramification here is that free links pointing at non-existant resources will have a special class and possibly a special url. That's cool, but as Markout is a preprocessor, that complicates our lives. Still, we can gamble on the assumption that we do not want to perform resource checking when just returning a preprocessed document -- that's likely to be sent over email or packaged with some source code or something, where the existing/new distinction is less relevant. So, we only do resource checking when Markout.process() is called (or set some sort of flag, or something), and then just wrap the resulting free link href in a span element or or generate an href element with a class or something.
Related to feature request #1615450.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1361052
Originator: YES
So the ramification here is that free links pointing at non-existant resources will have a special class and possibly a special url. That's cool, but as Markout is a preprocessor, that complicates our lives. Still, we can gamble on the assumption that we do not want to perform resource checking when just returning a preprocessed document -- that's likely to be sent over email or packaged with some source code or something, where the existing/new distinction is less relevant. So, we only do resource checking when Markout.process() is called (or set some sort of flag, or something), and then just wrap the resulting free link href in a span element or or generate an href element with a class or something.
Related to feature request #1615450.