sissbruecker / linkding

Self-hosted bookmark manager that is designed be to be minimal, fast, and easy to set up using Docker.
MIT License
5.33k stars 261 forks source link

Optional markdown descriptions #717

Open bloodripelives opened 2 months ago

bloodripelives commented 2 months ago

Related to #709, I imported bookmarks from Shaarli which contain markdown that is entered as description, so I set my personal instance up to accomodate that by editing line 49 of bookmark_list.html to <div class="markdown">{% markdown bookmark_item.description %}</div>. I understand this isn't a behaviour that would be useful to people using automatically generated descriptions, and it's not a big deal to change manually after any updates, but would markdown descriptions be possible for it to be added as an option that could be toggled in settings?

sissbruecker commented 2 months ago

Maybe, though that could result in side-effects when automatically loading descriptions from websites. Those could contain characters that are then interpreted as markdown, or they could contain an HTML tag that the markdown renderer accepts. It's possible to detect whether a description was entered manually or comes from a website, so maybe website descriptions should never be rendered as markdown. Unfortunately that information is lost when exporting an re-importing bookmarks, so that might be harder to solve.