zulip/templates/zephyr/markdown_help.html

75 lines
2.1 KiB
HTML
Raw Normal View History

<div class="modal hide" id="markdown-help" tabindex="-1" role="dialog"
aria-labelledby="markdown-help-label" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="markdown-help-label">Message formatting</h3>
</div>
<div class="modal-body">
<div id="markdown-instructions">
<table class="table table-striped table-condensed table-rounded table-bordered" id="fmt_help_table">
<thead><tr>
<th>You type</th>
<th>You get</th>
</tr></thead>
<tbody>
<tr>
<td>*italic*</td>
<td><i>italic</i></td>
</tr>
<tr>
<td>**bold**</td>
<td><b>bold</b></td>
</tr>
<tr>
<td>[Bah!](http://humbughq.com)</td>
<td><a href="http://humbughq.com" target="_blank">Bah!</a></td>
</tr>
<tr>
<td>* a<br/>
* b<br/>
* c<br/>
</td>
<td>
<ul>
<li>a</li>
<li>b</li>
<li>c</li>
</td>
</tr>
<tr>
<td>&gt; Quoted</td>
<td><blockquote>Quoted</blockquote></td>
</tr>
<tr>
<td>Some inline `code`</td>
<td>Some inline <code>code</code></td>
</tr>
<tr>
<td class="preserve_spaces">~~~
def bah():
print "Humbug"
~~~</td>
<td><pre>def bah():
print "Humbug"</pre></td>
</tr>
<tr>
<td class="preserve_spaces">~~~ .py
def bah():
print "Humbug"
~~~</td>
<td>
<div class="codehilite"><pre><span class="k">def</span> <span class="nf">bah</span><span class="p">():</span>
<span class="k">print</span> <span class="s">"Humbug"</span></pre></div>
</td>
</tr>
</tbody>
</table>
<p>You can also make a code block by indenting each line with 4 spaces.</p>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-primary" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>