thomersch / openstreetmap-calendar

osmcal, a Collaborative Calendar for OpenStreetMap-related Events
https://osmcal.org
Apache License 2.0
33 stars 9 forks source link

Hide markup in embeds #122

Closed danieldegroot2 closed 1 year ago

danieldegroot2 commented 1 year ago

If possible, hide markup on links in embeds, i.e. in Discord. (sidenote: Discord is able to use markup for system(/bot)-created embeds)

It is probably best to avoid links to external websites which distract from the event link.

Current behaviour Markup is sent along with the message, cluttering the embed.

Compare OSMCal and the Community forum

image

Expected behaviour Markup is hidden, only the display text is visible. This leaves only the human-readable components.

danieldegroot2 commented 1 year ago

Thanks. After: image

The location is being displayed as "at Virtual in None". Consider dropping the marker's location when it is not specified.

danieldegroot2 commented 1 year ago

@thomersch similar remark;

RSS seems to print Event Website as link with display text "Event Website". Some websites, i.e. OSM AT can't or does not want to print the Event Website as link. So, display text "Event Website" is now stuck appended to the end of the event details/description.

How should such links be handled?

I.e. https://osmcal.org/event/2172/

image

Sidenote: They often provide direct link to event location in their description, which is their choice ofc. i.e. https://osmcal.org/event/2164/

image

(also, text sticks together alot because obviously it can't read/have all the markup in the world.)

Ref #9 .