Base-URL
#Gazer provides flexible ways to embed images in documents using Base-URL settings.
Note: The Base-URL settings are only used for plain text files. For Textbundle- and Textpack-files, the Base-URL points to the respective file and thus provides access to the asset directory contained in the respective files.
Using the Base-URL
After choosing the appropriate option and directory whose contents you want to use, you can include images as follows: You want to embed the image "example.jpg" from the directory "/Users/UserName/Images/" (the whole path to the image is: "/Users/UserName/Images/example.jpg") in your document, and you have previously set the directory Base-URL to "/Users/UserName/Images/", then the image can be embedded simply with "example.jpg".
The following options are available for controlling the Base-URL:
- No Base-URL
- If this option is selected, then no explicit Base-URL is set up.
- Automatic
- With this option, #Gazer checks the directory where the document resides for a directory of the same name. So if the file's name is "MyDocument.md" it will look for a directory named "MyDocument". If such a directory exists, the Base-URL is set to this directory. If such a directory is not found, the Base-URL is set to the directory where the current file is located. Please Note
- For this option, you must have grated #Gazer access to this very folder previously. (More details about grant access to folders)
- Folder
- This option allows you to direct the Base-URL to a folder that you specify. After selecting the option, you click on the path display, whereupon a selection window opens and you can select your desired folder.
- Web-URL
- Specifying a web address (https://www.example.com) will set the Base-URL to the specified web address.