codidact / qpixel

Q&A-based community knowledge-sharing software
https://codidact.com
GNU Affero General Public License v3.0
385 stars 69 forks source link

Add markdown for tags #1192

Open cellio opened 1 year ago

cellio commented 1 year ago

meta:288221

Request: markdown for tags:

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?

MoshiKoi commented 1 year ago

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.

cellio commented 1 year ago

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.