Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper tagging on upper case vs lower case #34

Open
chrisaldrich opened this Issue Feb 27, 2019 · 6 comments

Comments

Projects
None yet
2 participants
@chrisaldrich
Copy link

chrisaldrich commented Feb 27, 2019

Not quite sure what may be causing it, but I've noticed on my site that I get a properly tagged #WCSCV but don't get it properly tagged when I use lower case #wcscv. Is this to be expected or something in the line of a regex issue?

Examples: [1] [2]

(Originally posted at https://boffosocko.com/2019/02/27/proper-tagging-on-upper-case-vs-lower-case/)

@pfefferle

This comment has been minimized.

Copy link
Owner

pfefferle commented Mar 1, 2019

Hmm, interesting... It is definitely no regex problem... Have you added the #tag on post-creation or have you added the #tag afterwards (post edit)?

@pfefferle

This comment has been minimized.

Copy link
Owner

pfefferle commented Mar 1, 2019

And btw. the GitHub post shows that it should work in general: https://boffosocko.com/2019/02/27/proper-tagging-on-upper-case-vs-lower-case/ :)

@chrisaldrich

This comment has been minimized.

Copy link
Author

chrisaldrich commented Mar 1, 2019

I noticed the last part myself and had wondered if it was the period following the hashtag.

I think I've tested the #tag on both post-creation and post edit and not seen problems with either. (This particular case was initially seen on post-creation, but I've also played with it using post edit since and see the same issue.)

I'll also note that for example 1, if I put the hashtag on a new line, it wraps/links properly, but when it's on the same line with just one space between the prior sentence it doesn't. If I add two spaces between the sentence and the hashtag it also wraps/links properly.

Perhaps it's a quirk with TinyMCE Advanced, which is the editor I happen to be using? I'll try to test that out later, but thought I'd point out the edge case.

Since discovering that two spaces will fix the issue, feel free to close this.

@pfefferle

This comment has been minimized.

Copy link
Owner

pfefferle commented Mar 9, 2019

Any news on this?

@pfefferle

This comment has been minimized.

Copy link
Owner

pfefferle commented Mar 13, 2019

@chrisaldrich friendly ping ;)

@chrisaldrich

This comment has been minimized.

Copy link
Author

chrisaldrich commented Mar 20, 2019

Didn't seem to be TinyMCE, so I'm not sure what could be causing the difference. Feel free to close this for now. I'll reopen if I see other edge cases or behavior which may be relevant.

For those interested in manually preventing the automatic hashtag behavior in some cases I'll note that adding things like a zero-width space ​ between the # and the tag text seems to be useful. I'm sure there are other similar methods...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.