Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Comments on automatic linking to a specific category, by title

Parent

automatic linking to a specific category, by title

+4
−0

I'd love a Codidact-specific markdown extension that links to a post in a particular category. That was really unclear, so let me give an example. A particular site can have a Glossary category with particular pages as entries in the category. Then [[foo]] anywhere on the site will link to the "foo" entry in the glossary.

Some use cases:

  • Judaism can have a glossary so people can write a term of art like "muktzeh" in a post and simply link it to let people know what it means.
  • Cooking can have a Standard Methods category of explanatory posts so a recipe can say After [[separating the eggs]],….

Some details:

  • The markdown [[...]] is not meant to be final and some other can be chosen. (However, I like it, because it's similar to the [...] link markdown.)
  • I say [[foo]] should link "to the 'foo' entry" and the question is — what's that? Well, most obviously it's the entry whose title is "foo". But it would be really nice to have redirection/canonicalization so that [[separating the eggs]] can link to the "separation of eggs" page. How? Perhaps by creating a page as a redirect. Maybe people have better ideas about how to do this.

A response to expected pushback:

  • Yes, I know it's possible using a userscript. But don't you want all users, not just those with the script, to be able to see the link?
History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

General comments (1 comment)
Post
+1
−0

This has taken a little while to get to while I did some research into how feasible it is.

For the moment, I'm putting a [status-deferred] on this - I know that's not the answer you were hoping for, but it is the necessary answer. Adding a custom Markdown extension involves developing an extension for two separate Markdown rendering systems. It's not impossible, but it requires some extensive work and testing to be sure that it works correctly.

For a feature that ultimately comes down to adding a link that could also be added manually... the work this involves isn't worth the time it would take right now. Once we've finished more of the features we've got planned, we should be able to revisit this.

History
Why does this post require moderator attention?
You might want to add some details to your flag.

1 comment thread

General comments (1 comment)
General comments
msh210‭ wrote over 3 years ago · edited over 3 years ago

Deferring it seems eminently reasonable. Thanks for looking into it!