marked/docs/demo/index.html

75 lines
2.5 KiB
HTML
Raw Normal View History

2018-03-26 10:36:47 -05:00
<!doctype html>
<html lang="en">
<head>
<title>Marked Demo</title>
<link rel="stylesheet" href="./demo.css" type="text/css" />
</head>
<body>
<a href="https://github.com/markedjs/marked">
<img class="github-ribbon" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub">
</a>
<header>
<a href="../">
<img src="../img/logo-black.svg" height="64px" width="64px" />
</a>
<h1>Marked Demo</h1>
</header>
<div class="containers">
<div class="container">
<div class="label">
2018-03-28 11:24:14 -05:00
<span>Input</span> ·
<a id="permalink">Permalink</a> ·
2019-02-08 14:11:09 -06:00
<span>Version: </span>
<select id="markedVersion">
2019-02-14 00:08:33 -06:00
<option value="commit">Add Commit:</option>
2019-02-14 00:11:59 -06:00
<option value="master" selected>master</option>
2019-02-14 00:08:33 -06:00
</select>
2019-02-14 00:15:09 -06:00
<input type="text" id="commitVersion" title="Press ENTER to add commit" />·
2018-03-28 11:24:14 -05:00
<button id="clear">Clear</button>
2018-10-18 00:19:48 -07:00
<select id="inputType">
<option value="markdown">Markdown</option>
<option value="options">Options</option>
</select>
2018-03-26 10:36:47 -05:00
</div>
2018-10-18 00:19:48 -07:00
<textarea id="markdown" class="inputPane"></textarea>
<textarea id="options" class="inputPane" placeholder="Options (as JSON)"></textarea>
2018-03-26 10:36:47 -05:00
</div>
<div class="container">
<div class="label">
<select id="outputType">
2018-04-03 11:07:56 -05:00
<option value="preview">Preview</option>
<option value="html">HTML Source</option>
<option value="lexer">Lexer Data</option>
<option value="quickref">Quick Reference</option>
2019-02-13 14:18:15 -06:00
</select> ·
Response Time:
<span id="responseTime"></span>
2018-03-26 10:36:47 -05:00
</div>
<div id="preview" class="pane">
<noscript>
<h2>You'll need to enable Javascript to use this tool.</h2>
</noscript>
2018-06-24 01:46:25 -05:00
<iframe src="./preview.html" frameborder="0" sandbox="allow-same-origin"></iframe>
2018-03-26 10:36:47 -05:00
</div>
<textarea id="html" class="pane" readonly="readonly"></textarea>
<textarea id="lexer" class="pane" readonly="readonly"></textarea>
<textarea id="quickref" class="pane" readonly="readonly"></textarea>
</div>
</div>
2019-02-08 14:11:09 -06:00
<script id="markedCdn"></script>
2018-03-26 10:36:47 -05:00
<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>
</body>
</html>