Skip to content

Commit

Permalink
Merge branch 'enhancement-1406-demo-version' into demo-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech authored Feb 9, 2019
2 parents 3fe5572 + 3ddbb43 commit b236deb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ function handleOutputChange() {
updateLink();
}

function handleVersionChange() {
handleChange($markedVer, $markedVerElem.value);
updateVersion();
}

function handleChange(panes, visiblePane) {
var active = null;
for (var i = 0; i < panes.length; i++) {
Expand Down
6 changes: 6 additions & 0 deletions docs/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ <h1>Marked Demo</h1>
<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>
Expand Down

0 comments on commit b236deb

Please sign in to comment.