can an annotation provide a link to a webpage? #1807
-
the standard lua library annotations provide links to the lua documentation pdf which open in a side panel e.g:
which looks like is there a similar syntax which links to a web page? context: i'm writing a libray of metas for World of Warcraft addons, and would like to link to, e.g. https://wowpedia.fandom.com/wiki/API_GetSpellInfo |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It does not allow for anyone to link to documentation that lives elsewhere. This is a good thing though as it could open some serious security holes. In your case, it would be best to just do a simple markdown link that will open the user's browser: |
Beta Was this translation helpful? Give feedback.
-
thanks!
…On Fri, Jan 6, 2023 at 3:26 PM carsakiller ***@***.***> wrote:
---[View
documents](command:extension.lua.doc?["en-us/51/manual.html/pdf-math.acos"])
executes a VS Code command that then launches a webview
<https://code.visualstudio.com/api/extension-guides/webview> that shows
the locally stored documentation.
It does not allow for anyone to link to documentation that lives
elsewhere. This is a good thing though as it could open some serious
security holes.
In your case, it would be best to just do a simple markdown link that will
open the user's browser:
---[View Documentation](https://wowpedia.fandom.com/wiki/API_GetSpellInfo)
—
Reply to this email directly, view it on GitHub
<#1807 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAUBWP7QDSKNZBUZB7M23TWQ7CJDANCNFSM6AAAAAATSZFQXU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
---[View documents](command:extension.lua.doc?["en-us/51/manual.html/pdf-math.acos"])
executes a VS Code command that then launches a webview that shows the locally stored documentation.It does not allow for anyone to link to documentation that lives elsewhere. This is a good thing though as it could open some serious security holes.
In your case, it would be best to just do a simple markdown link that will open the user's browser:
---[View Documentation](https://wowpedia.fandom.com/wiki/API_GetSpellInfo)