canjs / bit-docs-html-canjs

The plugins to produce CanJS.com
https://www.npmjs.com/package/bit-docs-html-canjs
MIT License
7 stars 0 forks source link

Make it possible to put links in code comments #574

Open phillipskevin opened 4 years ago

phillipskevin commented 4 years ago

For code like this:

<!-- Adds the custom element to the page -->
<my-counter></my-counter>

<script type="module">

// The name of the custom element
customElements.define("my-counter", Counter);
</script>

...it would be really useful to be able to link to https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define in the comment above the last line of the script and make it possible for users to click them.