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="../">
|
2020-08-29 18:32:39 -04:00
|
|
|
<img src="../img/logo-black.svg" height="50px" width="50px" />
|
2018-03-26 10:36:47 -05:00
|
|
|
</a>
|
|
|
|
<h1>Marked Demo</h1>
|
2020-11-30 08:47:12 -06:00
|
|
|
<div class="other-demos">
|
|
|
|
<a href="https://spec.commonmark.org/dingus/">CommonMark Demo</a>
|
|
|
|
<br />
|
|
|
|
<a href="https://daringfireball.net/projects/markdown/dingus">Daring Fireball (pedantic) Demo</a>
|
|
|
|
</div>
|
2018-03-26 10:36:47 -05:00
|
|
|
</header>
|
|
|
|
|
2019-02-14 11:25:01 -06:00
|
|
|
<div id="loading">Loading...</div>
|
|
|
|
<div id="main">
|
|
|
|
<div class="containers">
|
|
|
|
<div class="container">
|
|
|
|
<div class="label">
|
|
|
|
<span>Input</span> ·
|
|
|
|
<a id="permalink">Permalink</a> ·
|
|
|
|
<span>Version: </span>
|
|
|
|
<select id="markedVersion">
|
|
|
|
<option value="pr">Add PR:</option>
|
|
|
|
<option value="commit">Add Commit:</option>
|
|
|
|
<option value="master" selected>master</option>
|
|
|
|
</select>
|
|
|
|
<input type="text" id="commitVersion" title="Press ENTER to add commit" />·
|
|
|
|
<button id="clear">Clear</button>
|
|
|
|
<select id="inputType">
|
|
|
|
<option value="markdown">Markdown</option>
|
|
|
|
<option value="options">Options</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<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>
|
|
|
|
|
2019-02-14 11:25:01 -06:00
|
|
|
<div class="container">
|
|
|
|
<div class="label">
|
|
|
|
<select id="outputType">
|
|
|
|
<option value="preview">Preview</option>
|
|
|
|
<option value="html">HTML Source</option>
|
|
|
|
<option value="lexer">Lexer Data</option>
|
|
|
|
<option value="quickref">Quick Reference</option>
|
|
|
|
</select> ·
|
|
|
|
Response Time:
|
|
|
|
<span id="responseTime"></span>
|
|
|
|
</div>
|
2018-03-26 10:36:47 -05:00
|
|
|
|
2019-02-14 11:25:01 -06:00
|
|
|
<div id="preview" class="pane">
|
|
|
|
<noscript>
|
|
|
|
<h2>You'll need to enable Javascript to use this tool.</h2>
|
|
|
|
</noscript>
|
2019-02-14 11:52:14 -06:00
|
|
|
<iframe src="./preview.html" frameborder="0" sandbox="allow-same-origin allow-top-navigation-by-user-activation"></iframe>
|
2019-02-14 11:25:01 -06:00
|
|
|
</div>
|
2018-03-26 10:36:47 -05:00
|
|
|
|
2019-02-14 11:25:01 -06:00
|
|
|
<textarea id="html" class="pane" readonly="readonly"></textarea>
|
2018-03-26 10:36:47 -05:00
|
|
|
|
2019-02-14 11:25:01 -06:00
|
|
|
<textarea id="lexer" class="pane" readonly="readonly"></textarea>
|
2018-03-26 10:36:47 -05:00
|
|
|
|
2019-02-14 11:25:01 -06:00
|
|
|
<textarea id="quickref" class="pane" readonly="readonly"></textarea>
|
|
|
|
</div>
|
2018-03-26 10:36:47 -05:00
|
|
|
</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>
|