Special characters in GitHub wiki page names - AndyGlew/Test-GitHub-stuff GitHub Wiki
I like having special characters and wiki page names.
Why? Basically because I like using natural notations in page titles- or at least links.
By "Page Name" I mean the title that typically appears at the top of a wiki page.
Also, the page name that is placed within wiki compact links, like Confluence's [Square] or WacoWiki's (([double]round bracket links)) or TracWiki's [wiki:link]. double square bracket links are the most common, but unfortunately this GitHub wiki doesn't have a way of escaping double square brackets - although it does in Markdown in the repo.
By "URL encoded" I mean the name that is put in an HTTP or HTTPS link. it may contain standard URL encodings like %20 for space; in addition, it may contain mappings for readability like mapping space to underscore ( MediaWiki) or - (GitHub wiki), since %20 and other hex encodings can be hard to read. it is pleasant if the URL itself is readable, and possibly editable in simple ways.
Ideally these mappings are reversible. (Counterexample: this GitHub wiki maps spaces to hyphens -, and reverse maps - to space. causing problems if you want to have a space in a page title.)
Flexible compact links are what calls FreeLinks: almost...
- Can links containing any character (including spaces) be created?
-
https://www.wikimatrix.org/compare/dokuwiki+mediawiki+xwiki+moinmoin+foswiki+tracwiki
- problems with free links
Second, I like wikis that represent wiki pages as files. However, this means that there must also be a mapping between the page title and the file name.
E.g. for this GitHub wiki, I am editing it in cygwin on Windows. so, although the GitHub wiki allows colons in page titles, and also in the filenames when a git clone of the wiki repo is made, Windows does not allow colons in filenames.
Also, GitHub supports multiple markdown syntaxes (e.g. Markdown, MediaWiki, AsciiDoc), and there are differences between the rendering of Markdown in the repo and the corresponding wiki.
This pagew is mediawiki.
See also Special-characters-in-GitHub-wiki-page-names-GFMarkdown.
- AFAICT GitHub's Markdown and Mediawiki double square bracket links treat special characters the same way.
* TBD: rest ewxhaustively
e.g. I like using Q/A format - yes, even in page names
- Q: here is a question? that will be discussed in a page name
- [Q:]
- [LL/SC]
- [LL/SC]
- [either/or]
- closed: [lwb,upb]
- open: (lwb,ubp)
- half-open: [lwb,lwb+size)
- ]which I often abbreviate as [lwb,+size)]or [lwb/+size)
- ]this is the standard interval used for block operations like memcopy and capabilities such as in Intel MPX
- [{a,b}{1,2}]
- [all]
- or at least auto URL encode in links
- generate URL encoded page name [special-%3F-%3F]
OK: character appears in link and title and URL
%XX: character appears in page title and link and is ASCII hex encoded in URL
FAIL-SPACED: broken. not reversible. typically maps to - in URL and a blank space in page title
- OK - special character in link page name X
- OK - special character in link page name ~ tilde
- %60 - special character in link page name ` backtick
- %21 - special character in link page name ! Exclamation Mark
- %23 - special character in link page name # hash sign
- %25 - special character in link page name % percent
- %5E - special character in link page name ^ caret
- %26 - special character in link page name & ampersand
- %2A - special character in link page name * asterisk
- %28 %29 - special character in link page name () round brackets
- OK - special character in link page name _ underscore
- FAIL-SPACED - special character in link page name - hyphen
- FAIL-SPACED - special character in link page name + plus
- %3D - special character in link page name = equals
- %7B %7D - special character in link page name {} curly braces
- %5B %5D - special character in link page name [] square brackets
- FAIL pipe sign | - Maybe my broken
- %5C - special character in link page name \ back slash
- %3A - special character in link page name : colon
- %3B - special character in link page name ; semicolon
- OK - special character in link page name " double quote
- I am a bit surprised to see " in a URL.
- it may be allowed, but in the scripting language it is a bubble waiting to happen
- %27 - special character in link page name ' single quote
- FAIL-SPACED - special character in link page name <> angle brackets
- %2C - special character in link page name , comma
- OK - special character in link page name . period
- %3F - special character in link page name ? Question Mark
- FAIL-SPACED - special character in link page name / slash
See https://stackoverflow.com/questions/16027723/how-to-escape-backslash-bracket-in-markdown