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

Hashtag Spacing and Empty Tag Handling #161

Merged
merged 7 commits into from
Nov 1, 2023

Conversation

jeffsikes
Copy link
Contributor

Resolves #159

Noticed another issue where a single "undefined" tag was getting included when the tag attribute was missing from the bookmark object. Added handling for that scenario.

A note about differences across apps for hashtag linking. Phanpy and Elk both leave the inline href values as submitted, so it ends up going back to our personal Postmark instances in a new window and displaying them there.

All other apps are replacing the hashtag links with /tags/{tagName} so it shows tags as related to the current instance you're viewing the post on.

Copy link
Owner

@ckolderup ckolderup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if I'm misreading something, but in #159 you mentioned that the tags needed manual linebreaks before them instead of managing everything with <p>s. the diff here appears to be shifting the markup around but seems like a different approach-- did you shift tactics (which is fine, just wanted to make sure we're not missing some unstaged work or something!)

@jeffsikes
Copy link
Contributor Author

Hi! Yes, after I checked a few additional apps, I noticed the manual line breaks were being removed in some apps, and in others it made the spacing look odd (two lines before the hashtag line). The most compatible path I found was to wrap the main content in a <p> tag and then the same with the hashtags <p>. This provided consistent results across all apps I tested.

In addition to that fix, I also noticed a pre-existing issue. If you enter a bookmark with no tags and no description, an extra line was being added at the end (assuming a description would be there). So, fixed that as well, checking for a description before adding the extra line break.

Some of the attributes aren't being honored like the target="_blank" so I removed it as well.

During my testing, I also noticed a bug in Ivory. If you only enter a title (title with URL link), Ivory just removed the link altogether and just displays the preview card. So if you added a custom title it isn't included.

I have all of my testing scenarios and apps I've been testing in, happy to provide that if it would be helpful in some way for automation in the future?

Aside - I'm running out of real links from my Raindrop.io account to use on my official site. 🤣 I think I'm gonna have to build a separate one for AP testing.

Copy link
Owner

@ckolderup ckolderup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I appreciate the diligence, I just wanted to make sure we were on the same page. Thank you for all of this and apologies for the delay in closing it all out!

@ckolderup ckolderup merged commit 55c9665 into ckolderup:main Nov 1, 2023
1 check passed
@jeffsikes jeffsikes deleted the issue-hashtag-spacing branch November 1, 2023 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hashtags display compatibility across apps
2 participants