Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Category pages (and possibly other specials) #51

Open
simon-brooke opened this issue Mar 2, 2020 · 0 comments
Open

Category pages (and possibly other specials) #51

simon-brooke opened this issue Mar 2, 2020 · 0 comments
Assignees

Comments

@simon-brooke
Copy link
Collaborator

Mediawiki, blogging engines, and other similar content management systems have the concept of categories (PReS did). To implement 'special' pages like category pages, we have to create some syntactic construct which will sit comfortably in Markdown, but which we can intepret specially.

We already interpret text enclosed in two square brackets as special - 'local links'. If we adopted a convention that a local link which starts with a colon (i.e. [[:) is a 'special' which can be intepretted specially either when emitting HTML or when the link is past to /wiki, then links starting [[:Category could be the first of the specials, and automatically create category pages.

When an edited page is saved, it is scanned for any such [[:Category links, and the appropriate category pages are automatically updated. Or else, when you browse to a Category page, it is automatically constructed on the fly by grepping for files with such links in them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant