-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1415 from remyhunt/enhancement-1406-demo-version
Add select option in demo mode to choose Marked version
- Loading branch information
Showing
2 changed files
with
91 additions
and
22 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
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 |
---|---|---|
|
@@ -23,11 +23,21 @@ <h1>Marked Demo</h1> | |
<div class="label"> | ||
<span>Input</span> · | ||
<a id="permalink">Permalink</a> · | ||
<span>Version: </span> | ||
<select id="markedVersion"> | ||
<option value="master">master</option> | ||
</select> · | ||
<button id="clear">Clear</button> | ||
<select id="inputType"> | ||
<option value="markdown">Markdown</option> | ||
<option value="options">Options</option> | ||
</select> | ||
<select id="markedVersion"> | ||
<option value="https://cdn.jsdelivr.net/npm/marked@master/marked.min.js">Marked@master</option> | ||
<option value="https://cdn.jsdelivr.net/npm/[email protected]/marked.min.js">[email protected]</option> | ||
<option value="https://cdn.jsdelivr.net/npm/[email protected]/marked.min.js">[email protected]</option> | ||
<option value="https://cdn.jsdelivr.net/npm/[email protected]/marked.min.js">[email protected]</option> | ||
</select> | ||
</div> | ||
<textarea id="markdown" class="inputPane"></textarea> | ||
<textarea id="options" class="inputPane" placeholder="Options (as JSON)"></textarea> | ||
|
@@ -57,7 +67,7 @@ <h2>You'll need to enable Javascript to use this tool.</h2> | |
<textarea id="quickref" class="pane" readonly="readonly"></textarea> | ||
</div> | ||
</div> | ||
<script src="https://cdn.jsdelivr.net/npm/marked/lib/marked.js"></script> | ||
<script id="markedCdn"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/es6-promise/dist/es6-promise.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/unfetch/dist/unfetch.umd.js"></script> | ||
<script src="./demo.js"></script> | ||
|