Special characters in GitHub wiki page names GFMarkdown - AndyGlew/Test-GitHub-stuff GitHub Wiki

Summary of Characters to Avoid

GitHub wiki Markdown

  • - hyphen
  • + plus
  • | pipe
  • < > angle brackets
  • / forward slash
  • & becomes &amp; in page title

In mediawiki & is allowed in Internal links

Linux

  • / forward slash

Windows

  • < (less than)
  • > (greater than)
  • : (colon - sometimes works, but is actually NTFS Alternate Data Streams)
  • " (double quote)
  • / (forward slash)
  • \ (backslash)
  • | (vertical bar or pipe)
  • ? (question mark)
  • * (asterisk)

Ugly %encoding

  • ` Back tick
  • ! Exclamation mark
  • # hash sign
  • % percent
  • ^ caret
  • & ampersand
  • * asterisk
  • ( ) parentheses, round brackets
  • = equals
  • { } curly braces
  • ] [ square brackets
  • | pipe sign
  • \ back /
  • : colon
  • ; Semicolon
  • " double quote
  • ' single quote
  • < > angle brackets
  • , Comma
  • ? Question Mark
  • / slash

Tests of FreeLinks - special characters in internal links

This is Markdown. See Special-characters-in-GitHub-wiki-page-names for Mediawiki. AFAICT GitHub's Markdown and Mediawiki double square bracket links treat special characters the same way.

  • TBD: test exhaustively

Wiki:

  • 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

W/L:

  • -W not allowed in Windows file names
  • -L not allowed in UNIX/Linux file names
Safe wiki+W+L? Wiki W/L link
... OK ...y special character in link page name X
OK special character in link page name ~ tilde
%60 [special character in link page name backtick](/AndyGlew/Test-GitHub-stuff/wiki/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
n %2A -W 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
n FAIL-SPACED special character in link page name - hyphen
n 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
n FAIL pipe sign -W
n %5C -W special character in link page name \ back slash
n %3A -W special character in link page name : colon
%3B special character in link page name ; semicolon
n OK -W special character in link page name " double quote
%27 special character in link page name ' single quote
n FAIL-SPACED -W 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 -W special character in link page name ? Question Mark
n FAIL-SPACED -W -L special character in link page name / slash