URL 하이라이팅이 사양에 맞지 않습니다

P.S. When I tried to post, I saw An error occurred: Sorry, new users can only put 2 links in a post. popup. I don’t know what kind of spam is it able to prevent as one link is enough for most spammers, but now I have to replace some of my nicely-formatted markdown links with text-based footnotes. The process of adding a footnote in the default markdown editor is by itself so glitchy and infuriating to be worth a separate report.


P.S.S. It appears that Markdown-based references are also counted as links. Removing them in favor of Unicode superscript digits. At 40th minute of me trying to write this post.


According to STD 66 / RFC 3986¹ (human-friendly extracted list²), 81 characters may be unescaped in a URL fragment or queue. This list, sorted in ASCII order by the framework “Foundation³” in the Swift programming language: !$&'()*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~

The following is a URL containing several of these characters: Example Domain '()*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~ As you may see, highlighting is being cut off at a certain point.

While working at my project that uses these 81 characters to encode binary data in fragments (in base64 fashion, but more compact) I checked now up-to-spec highlighting is on several websites. While a similar bug was, inconsistently, present in some other places (like GitHub forum being unable to highlight the last character if it’s a ~), Discourse has the widest selection of broken symbols. Some characters may or may not break the highlighting depending on some mysterious context, hence I don’t think I would be able to compose a comprehensive list.

¹ Google rfc/rfc3986.txt
² Look for Stack Overflow answer #26119120
³ Look up documentation/foundation/nscharacterset/urlfragmentallowed on Apple > Developer


P.S.S.S. Some standard E-Mail addresses are also not highlighted. I’ll use my second link to link to https://e-mail.wtf for some examples.

Not highlighted, but should be:

orgmail(to John Doe)@example.com
“:(){ :|:& };:”@example.com
magic@[::1]

1개의 좋아요

커뮤니티에 오신 것을 환영합니다!

게시해 주셔서 감사합니다. 보고하신 내용이 엄밀히 말해 Contribute > Bug(버그)는 아닌 것 같아 Contribute > Feature(기능 요청)로 이동했습니다. 매우 기술적인 내용이라 Development(개발) 게시판이 더 적합할 수도 있습니다.

이것은 링크를 대량으로 게시하는 일회성 스팸을 방지하기 위한 신규 사용자용 제한입니다. 이곳에서 조금만 시간을 보내시면 이 제한은 자동으로 해제됩니다. 메타(meta)에서는 이 제한이 다소 엄격하다고 판단되어, 기본값인 URL 2개에서 5개로 상향 조정했습니다. 또한, 링크 개수와 관계없이 모든 스팸을 걸러내는 AI 기반 안티스팸 조치도 갖추고 있기 때문입니다.

이와 관련하여 더 많은 피드백이 있으시면 Contribute > Site feedback(사이트 피드백) 게시판에서 주제를 시작해 주세요.