Poplink extension for VS CodeMany modern publishing platforms build Markdown into HTML for publication on a website. When editing a Markdown source file in such a platform, it can be useful to open the corresponding web page. Poplink converts the file path of the currently open Markdown file into an expected URL and opens that URL in the default web browser. Optionally, you can add a second local path to base URL mapping. Primary mappingFor example, say that a local path like this:
...publishes to...
To convert from local path to URL, we need to replace everything before the
Secondary mappingPoplink can also have an optional secondary mapping. For example, you might have an additional local path to remote URL mapping. Say that:
...publishes to...
If you have such a secondary mapping, add the following lines to your
Note: The local paths are case-sensitive. Ensure that casing in the local path value(s) match the casing of the actual paths. Also note the double backslashes required in the local paths. We recommend binding the
Pro Tip: Use the Release NotesCreated for the Microsoft Hackathon 2017, secondary mapping added for Hackathon 2020. |