Wikipedia oneboxing of articles containing unusual characters in the URL

  • Since linkify-it uses heuristic, it can never guarantee 100% confidence (even 99.99% != 100%) => it requres some marker (currently <..>) to force link borders.
  • Your onebox also requires some marker to force on/off.

So: you have two independent processing modes => need 2 independent markers/flags to define.

Currently, you have only single marker for 2 modes. That’s a logical collision. In my project i solved problem this way:

  1. Allowed to apply link convertor to autolinks (<...> - this markup).
  2. Added checkbox to editor options “disable links expand” (for every post)

Not ideal, but ok for me. My be you can invent better way how to add second markup/flag for your case.

3 Likes