The second snippet creates the reference link. The first takes highlighted text in the body of your text and sets up the text and reference number. If you want to add a reference link later, I created two more snippets. The above workflow assumes you think of creating the link while you are typing. The Snippet should now look like this: - Begin Snippet Code. The first will hold the Link Text and the second will hold the Reference. Fire up TextExpander and follow along.Ĭreate a new snippet and start with two sets of brackets. Finally, it puts the cursor back at the end of your link text. This snippet, upon activation, asks you to insert the Link Text and Reference and then creates a Reference entry on the next line using the Web link from your clipboard. If you are thinking ahead while you write, you can do this all in one step. So I decided to take a page from Patrick’s playbook and create my own TextExpander snippet to create referenced links. The Web URL is the link you are pointing toward. The Link Text is the text that shows up on the page. The syntax for reference links in Markdown works as follows: First you type some Some folks do it at the end of the paragraph. Reference links can be set anywhere in the document. You can also use the same reference more than once. The advantage of using referenced links is that the text is much easier to read. Patrick puts his links right next to the linked words. I wrote the whole book in MultiMarkdown.*Īnyway, Patrick’s video got me thinking. Variant), which lets me export to nearly any format and write on the iPhone, iPad, and Mac without friction. Like Patrick, I write everything in Markdown (although I use the MultiMarkdown Patrick Rhone (from MinimalMac) did his first screencast this week about creating a Text Expander snippet for Markdown links.
0 Comments
Leave a Reply. |