Markdown Configuration under Debian Jessie
Content preview
- Highlight syntax
- Preview mode
- Math formula
Step
- Installation
- Download CSS
- Settings
Installation
sudo aptitude -y install retext
sudo aptitude -y install python-markdown
sudo aptitude -y install libjs-mathjax libjs-mathjax-doc
Download CSS
Here are some examples, I use markdown_2.css and modified it.
- [CSS of Preview](http://sdaaubckp.sourceforge.net/spmdwe/spmdwe.php?file=markdown_styles.md"Preview CSS")
- [CSS of BDG(modified from markdown2.css)](http://pan.baidu.com/s/1pJMkQSF"wait for ")
- [Highlight CSS](http://pan.baidu.com/s/1mg8JJaK"Highlight CSS")(--optional)
Settings
- Edit -> Default markup -> markdown, check it on
- Edit -> Use WebKit renderer, check it on
- Edit -> Live preview, check it on
-
Edit -> Preferences, shown as blow picture
Show test
#include<sdtio.h>
int main () {
printf("There is no end...");
return 0;
}
$$(\sqrt{5} - 1)\over 2$$
$$\int_0^{+\infty} x^n e^{-x} ,dx = n!$$