Skip to content

Commit 8047118

Browse files
authoredMay 15, 2021
Website: Replace my.cdn in code sample with Handlebars-like placeholder (#2906)
1 parent 38f1d28 commit 8047118

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎index.html

+5-3
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,17 @@ <h2 id="basic-usage-cdn">Usage with CDNs</h2>
193193
&lt;html>
194194
&lt;head>
195195
...</code>
196-
<code class="highlight">&lt;link href="https://my.cdn/prism@v1.x/themes/prism.css" rel="stylesheet" /></code>
196+
<code class="highlight">&lt;link href="https://{{cdn}}/prism@v1.x/themes/prism.css" rel="stylesheet" /></code>
197197
<code>&lt;/head>
198198
&lt;body>
199199
...</code>
200-
<code class="highlight" style="display: inline-block; outline-offset: .2em; margin-bottom: .2em;"> &lt;script src="https://my.cdn/prism@v1.x/components/prism-core.min.js"&gt;&lt;/script&gt;
201-
&lt;script src="https://my.cdn/prism@v1.x/plugins/autoloader/prism-autoloader.min.js"&gt;&lt;/script&gt;</code>
200+
<code class="highlight" style="display: inline-block; outline-offset: .2em; margin-bottom: .2em;"> &lt;script src="https://{{cdn}}/prism@v1.x/components/prism-core.min.js"&gt;&lt;/script&gt;
201+
&lt;script src="https://{{cdn}}/prism@v1.x/plugins/autoloader/prism-autoloader.min.js"&gt;&lt;/script&gt;</code>
202202
<code>&lt;/body>
203203
&lt;/html></code></pre>
204204

205+
<p>Please note that links in the above code sample serve as placeholders. You have to replace them with valid links to the CDN of your choice.</p>
206+
205207
<p>CDNs which provide PrismJS are e.g. <a href="https://cdnjs.com/libraries/prism">cdnjs</a>, <a href="https://www.jsdelivr.com/package/npm/prismjs">jsDelivr</a>, and <a href="https://unpkg.com/browse/prismjs@1/">UNPKG</a>.</p>
206208

207209
<h2 id="basic-usage-bundlers">Usage with Webpack, Browserify, & Other Bundlers</h2>

0 commit comments

Comments
 (0)
Please sign in to comment.