From 2ab04421a346c9367528b17cb840927b2f35056c Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Wed, 17 Dec 2008 23:42:28 -0600 Subject: [PATCH] BlahTeX/PNG Support (from Ari Stern) --- app/views/admin/edit_web.rhtml | 4 ++-- app/views/markdownPNG_help.html.erb | 16 ++++++++++++++++ public/stylesheets/instiki.css | 1 + 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 app/views/markdownPNG_help.html.erb diff --git a/app/views/admin/edit_web.rhtml b/app/views/admin/edit_web.rhtml index b4277cd0..0fc270aa 100644 --- a/app/views/admin/edit_web.rhtml +++ b/app/views/admin/edit_web.rhtml @@ -25,8 +25,8 @@
   diff --git a/app/views/markdownPNG_help.html.erb b/app/views/markdownPNG_help.html.erb new file mode 100644 index 00000000..89d44a5d --- /dev/null +++ b/app/views/markdownPNG_help.html.erb @@ -0,0 +1,16 @@ +

Markdown+blahtex/PNG formatting tips (basics, extended syntax, metadata)

+ + + + + + + + + + + + + + +
_your text_your text
**your text**your text
`my code`my code
$LaTeX code$Insert an inline
math expression
\[LaTeX code\]Insert a math
expression on
its own line
* Bulleted list
* Second item
• Bulleted list
• Second item
1. Numbered list
1. Second item
1. Numbered list
2. Second item
Definition list
: is useful
Definition list
is useful
[link name](URL)link name
![Alt text](URL)Image
## Header ##
### Subheader ###
#### Etc. ####
Header
Subheader
Etc.
***Horizontal ruler
<http://url>
<email@add.com>
Auto-linked
diff --git a/public/stylesheets/instiki.css b/public/stylesheets/instiki.css index a8f64665..a3508610 100644 --- a/public/stylesheets/instiki.css +++ b/public/stylesheets/instiki.css @@ -379,6 +379,7 @@ merror {display:inline;font-size:1em;} math[display=block] {overflow:auto;} math { white-space: nowrap } .maruku-eq-number {float:right} +.maruku-equation {text-align:center} .blockquotesource {margin-left:1em;} fieldset.search {display:inline; border:none;padding:0;margin:0;top:5px;position:relative;} span.keyboard {