-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Website: Replace
my.cdn
in code sample with Handlebars-like placeho…
…lder (#2906)
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -193,15 +193,17 @@ <h2 id="basic-usage-cdn">Usage with CDNs</h2> | |
<html> | ||
<head> | ||
...</code> | ||
<code class="highlight"><link href="https://my.cdn/[email protected]/themes/prism.css" rel="stylesheet" /></code> | ||
<code class="highlight"><link href="https://{{cdn}}/[email protected]/themes/prism.css" rel="stylesheet" /></code> | ||
<code></head> | ||
<body> | ||
...</code> | ||
<code class="highlight" style="display: inline-block; outline-offset: .2em; margin-bottom: .2em;"> <script src="https://my.cdn/[email protected]/components/prism-core.min.js"></script> | ||
<script src="https://my.cdn/[email protected]/plugins/autoloader/prism-autoloader.min.js"></script></code> | ||
<code class="highlight" style="display: inline-block; outline-offset: .2em; margin-bottom: .2em;"> <script src="https://{{cdn}}/[email protected]/components/prism-core.min.js"></script> | ||
<script src="https://{{cdn}}/[email protected]/plugins/autoloader/prism-autoloader.min.js"></script></code> | ||
<code></body> | ||
</html></code></pre> | ||
|
||
<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> | ||
|
||
<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> | ||
|
||
<h2 id="basic-usage-bundlers">Usage with Webpack, Browserify, & Other Bundlers</h2> | ||
|