Links
Formatting Links
We support Markdown syntax for links, as well as normal HTML links. Here’s an example of a link to Leanpub:
1 [Leanpub](http://leanpub.com)
You can also create links like this:
1 <http://leanpub.com>
Please note that we do not support reference-style links. Our opinion is that while they are a great idea for shorter texts like blog posts, they are generally a bad idea for longer texts, like books. This will be explained explicitly when we implement Markua (the successor to Leanpub-flavored Markdown).
Long Hyperlinks
If you have particularly long hyperlinks in your text, you may prefer to make the long link show up only in the footnote in the PDF.
To do this, first you should make sure you have ticked ‘Show links as footnotes in PDFs’ on the “Book Theme” tab under “Writing” in your book tools menu (and then scrolled to the bottom of the page and clicked ‘Update Book’ to save the change).
Then you can format the link with a custom name, so only that name shows up in the body of your text, and the link shows up in the footnote.
For example, instead of doing this:
https://groups.google.com/group/leanpub/browse_thread/thread/9dd1391e6d9899c9
1 [https://groups.google.com/group/leanpub/browse_thread/thread/9dd1391e6d9899c9](http\
2 s://groups.google.com/group/leanpub/browse_thread/thread/9dd1391e6d9899c9)
You can do this:
1 [add a link name here](https://groups.google.com/group/leanpub/browse_thread/thread/\
2 9dd1391e6d9899c9)
The part inside of the square brackets becomes a clickable link followed by a footnote number. The part in parentheses becomes a footnote, which is also clickable.
Footnotes and Hyperlinks in PDF
If you select “Book Theme” under “Writing” in your book tools menu, you will see a section called “Links”. The options here allow you to choose whether links are rendered only as links in the body of your text, or to also show them as footnotes or html-style-links in PDFs. The latter option only affects normal links (links where the displayed link text in the body of your book is different than the URL).