Commits

Yannick Gingras committed c401688

mention of the new URL style

Comments (0)

Files changed (1)

 TIP: If the `<target>` necessitates space characters they should be
 replaced by `%20`. For example `large%20image.png`.
 
+Named URLs
+^^^^^^^^^^
+
+Long URLs inside a block of prose make the source harder to read.
+AsciiDoc support named URLs since 8.2.5.  You can name a URL and refer
+to its name when defining links inside of paragraphs.  Both alphabetic
+names and numbers are supported; the only restrictions is that the
+definition of a name must appear before its usage.
+
+Here is an example:
+
+  :fm: http://freshmeat.net/projects/asciidoc/
+  :ml: http://lists.metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss
+  
+  A paragraph is easy to read when it flows, that is, when most lines
+  have roughly the same length.  It will not suffer form the
+  occasional inclusion of a http://example.com[short URL] but it's
+  best to avoid long ones, like the {ml}[mailing list]'s one or
+  {fm}[Freshmeat summary] one.
+
+Which will render like this:
+
+:fm: http://freshmeat.net/projects/asciidoc/
+:ml: http://lists.metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss
+  
+A paragraph is easy to read when it flows, that is, when most lines
+have roughly the same length.  It will not suffer form the occasional
+inclusion of a http://example.com[short URL] but it's best to avoid
+long ones, like the {ml}[mailing list]'s one or {fm}[Freshmeat
+summary] one.
+
+
 Internal Cross References
 ^^^^^^^^^^^^^^^^^^^^^^^^^
 Two AsciiDoc inline macros are provided for creating hypertext links
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.