BlahTeX/PNG Support (from Ari Stern)
This commit is contained in:
parent
8eb59105ea
commit
2ab04421a3
|
@ -25,8 +25,8 @@
|
||||||
<div class="inputBox">
|
<div class="inputBox">
|
||||||
<label for="markup">Markup:</label>
|
<label for="markup">Markup:</label>
|
||||||
<select id="markup" name="markup">
|
<select id="markup" name="markup">
|
||||||
<%= html_options({'Textile' => :textile, 'Markdown' => :markdown, 'Markdown+itex2MML' => :markdownMML, 'Mixed' => :mixed,
|
<%= html_options({'Textile' => :textile, 'Markdown' => :markdown, 'Markdown+itex2MML' => :markdownMML, 'Markdown+blahtex/PNG' => :markdownPNG,
|
||||||
'RDoc' => :rdoc }, @web.markup) %>
|
'Mixed' => :mixed, 'RDoc' => :rdoc }, @web.markup) %>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
16
app/views/markdownPNG_help.html.erb
Normal file
16
app/views/markdownPNG_help.html.erb
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<h3>Markdown+blahtex/PNG formatting tips (<a target="_new" href="http://daringfireball.net/projects/markdown/syntax">basics</a>, <a target="_new" href="http://maruku.rubyforge.org/#extra">extended syntax</a>, <a target="_new" href="http://maruku.rubyforge.org/proposal.html">metadata</a>)</h3>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tr><td>_your text_</td><td class="arrow">→</td><td><em>your text</em></td></tr>
|
||||||
|
<tr><td>**your text**</td><td class="arrow">→</td><td><strong>your text</strong></td></tr>
|
||||||
|
<tr><td>`my code`</td><td class="arrow">→</td><td><code>my code</code></td></tr>
|
||||||
|
<tr><td>$LaTeX code$</td><td class="arrow">→</td><td>Insert an inline <br /> math expression</td></tr>
|
||||||
|
<tr><td>\[LaTeX code\]</td><td class="arrow">→</td><td>Insert a math <br /> expression on <br /> its own line</td></tr>
|
||||||
|
<tr><td>* Bulleted list<br />* Second item</td><td class="arrow">→</td><td>• Bulleted list<br />• Second item</td></tr>
|
||||||
|
<tr><td>1. Numbered list<br />1. Second item</td><td class="arrow">→</td><td>1. Numbered list<br />2. Second item</td></tr>
|
||||||
|
<tr><td>Definition list<br />: is useful</td><td class="arrow">→</td><td><dl style="display:inline"><dt>Definition list</dt><dd>is useful</dd></dl></td></tr>
|
||||||
|
<tr><td>[link name](URL)</td><td class="arrow">→</td><td><a href="URL">link name</a></td></tr>
|
||||||
|
<tr><td>![Alt text](URL)</td><td class="arrow">→</td><td>Image</td></tr>
|
||||||
|
<tr><td>## Header ##<br />### Subheader ###<br />#### Etc. ####</td><td class="arrow">→</td><td><b><span style="font-size:1.2em">Header</span><br /><span style="font-size:1.1em">Subheader</span><br /><span style="font-size:1em">Etc.</span></b></td></tr>
|
||||||
|
<tr><td>***</td><td class="arrow">→</td><td>Horizontal ruler</td></tr>
|
||||||
|
<tr><td><http://url><br /><email@add.com></td><td class="arrow">→</td><td>Auto-linked</td></tr>
|
||||||
|
</table>
|
|
@ -379,6 +379,7 @@ merror {display:inline;font-size:1em;}
|
||||||
math[display=block] {overflow:auto;}
|
math[display=block] {overflow:auto;}
|
||||||
math { white-space: nowrap }
|
math { white-space: nowrap }
|
||||||
.maruku-eq-number {float:right}
|
.maruku-eq-number {float:right}
|
||||||
|
.maruku-equation {text-align:center}
|
||||||
.blockquotesource {margin-left:1em;}
|
.blockquotesource {margin-left:1em;}
|
||||||
fieldset.search {display:inline; border:none;padding:0;margin:0;top:5px;position:relative;}
|
fieldset.search {display:inline; border:none;padding:0;margin:0;top:5px;position:relative;}
|
||||||
span.keyboard {
|
span.keyboard {
|
||||||
|
|
Loading…
Reference in a new issue