Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (32 sloc) 1.2 KB

Magic links are words that may appear within <wiki-text></wiki-text> that are automatically converted to external links without any special markup being required by the person writing the page.

&lt;magic-link&gt;	::= &lt;isbn&gt; | &lt;rfc-number&gt; | &lt;pmid-number&gt;

Note that all character-literals on this page are case sensitive (i.e. upper-case characters in the definitions on this page MUST be written in upper case in the markup).

ISBN numbers

See Manual:ISBN

&lt;isbn&gt;		::= "ISBN" (" "+) &lt;isbn-number&gt; ?(non-word-character /\b/)
&lt;isbn-number&gt;	::= ("97" ("8" | "9") (" " | "-")?) (DIGIT (" " | "-")?) {9} (DIGIT | "X" | "x")

Examples:

  • ISBN 1234567890
  • ISBN 123456789x
  • ISBN 1 2 3-4-5 6789 X
  • ISBN 978-9999999999
Counter-examples:
  • ISBN 12345678901 (not followed by non-word character )
  • ISBN 123456789 (too short)
  • ISBN 97-81234567890 (dashes not allowed in prefix)
  • ISBN1234567890 (no spaces)

RFCs

See Manual:RFC

&lt;rfc-number&gt;	::= "RFC" &lt;spaces&gt; &lt;digits&gt;

PubMed IDs

&lt;pmid-number&gt;	::= "PMID" &lt;spaces&gt; &lt;digits&gt;

BNF/Magic links