Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,15 @@ <h2>Enjoy live editing (+markdown)</h2>
<hr>
<p>To link or unlink, please press the <i>ENTER</i> key after you filled the input field with your a link. A <a
href="/sofish">link</a> can be unlink by applying an empty value to the input field.
</p>

<p>
<ul>
<li>Ordered list and unordered list are supported.</li>
<li>Use the toolbar or use markdown syntax like「<b>1. </b>」,「<b>- </b>」or「<b>* </b>」</li>
</ul>
</p>

<blockquote>You can quote text by type「<b>&gt;</b>」at line start.</blockquote>
<p>What about add underline to text? "<u>Stay Hungry, Stay Foolish - <i>Steve Jobs</i></u>".</p>
<pre>A code block is also supported by type 「```」 at line start and press SPACE.</pre>
Expand All @@ -91,7 +94,7 @@ <h2>Enjoy live editing (+markdown)</h2>
</div>

<a id="fork" href="https://github.com/sofish/pen" target="_blank"><img
src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>

<script src="src/pen.js"></script>
<script src="src/markdown.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion src/pen.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
var klass = 'pen-icon icon-' + name;
icons += '<i class="' + klass + '" data-action="' + name + '"></i>';
}, true);
if (toolList.indexOf('createlink') >= 0 || toolList.indexOf('createlink') >= 0)
if (toolList.indexOf('createlink') >= 0)
icons += inputStr;
} else if (ctx._toolbar.querySelectorAll('[data-action=createlink]').length ||
ctx._toolbar.querySelectorAll('[data-action=insertimage]').length) {
Expand Down