Reputation: 5958
Let's say I have the following inline code-snippet:
Signature: `createLayer(styles: Styles, preferredStyle: string)`
Signature: createLayer(styles: Styles, preferredStyle: string)
How to I add a link to the code snippet?
I tried the following, but the snippet is no longer inline.
Signature: <pre>createLayer(styles: [Styles](MY_LINK_HERE), preferredStyle: string)</pre>
Signature:
createLayer(styles: Styles, preferredStyle: string)
Upvotes: 0
Views: 41
Reputation: 42487
Inline code spans use <code>
tags, not <pre>
tags. So try:
Signature: <code>createLayer(styles: [Styles](http://example.com), preferredStyle: string)</code>
Which renders as:
Signature:
createLayer(styles: Styles, preferredStyle: string)
Upvotes: 1