qpixel icon indicating copy to clipboard operation
qpixel copied to clipboard

Add markdown for tags

Open cellio opened this issue 2 years ago • 2 comments

meta:288221 https://codegolf.codidact.com/posts/294029

Request: markdown for tags:

  • In a post: styled as if the tag were a tag on the post (including required/topic/mod-only styling), and links to that tag's page
  • In a comment: no special styleing, and links to that tag's page

From elsewhere, people are used to [tag:name], and our own search syntax includes tag:name (no brackets). If we can do [tag:name], that's probably best for ease of adoption. If we can't do that, can we do some other shorthand syntax?

cellio avatar Aug 24 '23 03:08 cellio

I have a proof of concept on https://github.com/MoshiKoi/qpixel/tree/tag-syntax-experiment, which uses [tag:name] syntax. It isn't able to include required/topic/mod-only styling though, because we don't expose that information through the tags API. Thus, this requires a change to the backend as well if we want that feature.

MoshiKoi avatar Sep 08 '23 03:09 MoshiKoi

Approaching it incrementally sounds fine by me! If we can get the syntax and basic styling at all, we can make a follow-on issue to add the backend support for the enhanced styling.

cellio avatar Sep 11 '23 18:09 cellio