lintry

init

1 +#!/usr/bin/env node
2 +
3 +"use strict";
4 +
5 +var target = process.argv[2];
6 +
7 +if (!target) {
8 + console.error('target file is not found!');
9 + process.exit(1);
10 +}
11 +
12 +const mdview = require('../lib/mdview')(),
13 + path = require('path');
14 +
15 +const filename = path.resolve(process.cwd(), target);
16 +var result = mdview.renderFile(filename);
17 +
18 +console.log(result);
1 +module.exports = require('./lib/mdview');
1 +"use strict";
2 +const fs = require('fs');
3 +
4 +function MarkdownIt(opts) {
5 + if (!(this instanceof MarkdownIt)) {
6 + return new MarkdownIt(opts);
7 + }
8 +
9 + opts = opts || {};
10 +
11 + var md = require('markdown-it')(opts.options);
12 +
13 + this.renderFile = function(filename) {
14 + if (!filename) {
15 + throw new Error('filename can not be null!')
16 + }
17 +
18 + try{
19 + var content = fs.readFileSync(filename).toString();
20 + var result = md.render(content);
21 + } catch(e) {
22 + result = md.render(`
23 +## 404
24 +*文件找不到!*
25 +`)
26 + }
27 +
28 + return result;
29 + }
30 +}
31 +
32 +module.exports = MarkdownIt;
1 +Markdown:
2 +
3 +A First Level Header
4 +====================
5 +
6 +A Second Level Header
7 +---------------------
8 +
9 +Now is the time for all good men to come to
10 +the aid of their country. This is just a
11 +`regular paragraph`.
12 +
13 +The quick brown fox jumped over the lazy
14 +dog's back.
15 +
16 +### Header 3
17 +
18 +> This is a blockquote.
19 +>
20 +> This is the second paragraph in the blockquote.
21 +>
22 +> ## This is an H2 in a blockquote
23 +
24 +### PHRASE EMPHASIS
25 +
26 +**Markdown**
27 +
28 +Some of these words *are emphasized*.
29 +Some of these words _are emphasized also_.
30 +
31 +Use two asterisks for **strong emphasis**.
32 +Or, if you prefer, __use two underscores instead__.
33 +
34 +**Output**
35 +
36 +```xml
37 +<p>Some of these words <em>are emphasized</em>.
38 +Some of these words <em>are emphasized also</em>.</p>
39 +
40 +<p>Use two asterisks for <strong>strong emphasis</strong>.
41 +Or, if you prefer, <strong>use two underscores instead</strong>.</p>
42 +```
43 +
44 +### LISTS
45 +Unordered (bulleted) lists use asterisks, pluses, and hyphens (*, +, and -) as list markers. These three markers are interchangable; this:
46 +
47 +* Candy.
48 +* Gum.
49 +* Booze.
50 +
51 +this:
52 +
53 ++ Candy.
54 ++ Gum.
55 ++ Booze.
56 +
57 +and this:
58 +
59 +- Candy.
60 +- Gum.
61 +- Booze.
62 +
63 +all produce the same output:
64 +
65 +```xml
66 +<ul>
67 +<li>Candy.</li>
68 +<li>Gum.</li>
69 +<li>Booze.</li>
70 +</ul>
71 +```
72 +
73 +Ordered (numbered) lists use regular numbers, followed by periods, as list markers:
74 +
75 +```
76 +1. Red
77 +2. Green
78 +3. Blue
79 +```
80 +
81 +Output:
82 +
83 +```xml
84 +<ol>
85 +<li>Red</li>
86 +<li>Green</li>
87 +<li>Blue</li>
88 +</ol>
89 +```
90 +
91 +If you put blank lines between items, you’ll get <p> tags for the list item text. You can create multi-paragraph list items by indenting the paragraphs by 4 spaces or 1 tab:
92 +
93 +* A list item.
94 +
95 + With multiple paragraphs.
96 +
97 +* Another item in the list.
98 +
99 +Output:
100 +
101 +```xml
102 +<ul>
103 +<li><p>A list item.</p>
104 +<p>With multiple paragraphs.</p></li>
105 +<li><p>Another item in the list.</p></li>
106 +</ul>
107 +```
108 +
109 +### LINKS
110 +
111 +Markdown supports two styles for creating links: inline and reference. With both styles, you use square brackets to delimit the text you want to turn into a link.
112 +
113 +Inline-style links use parentheses immediately after the link text. For example:
114 +
115 +This is an [example link](http://example.com/).
116 +
117 +Output:
118 +
119 +```xml
120 +<p>This is an <a href="http://example.com/">
121 +example link</a>.</p>
122 +```
123 +
124 +Optionally, you may include a title attribute in the parentheses:
125 +
126 +This is an [example link](http://example.com/ "With a Title").
127 +
128 +Output:
129 +
130 +```xml
131 +<p>This is an <a href="http://example.com/" title="With a Title">
132 +example link</a>.</p>
133 +```
134 +
135 +Reference-style links allow you to refer to your links by names, which you define elsewhere in your document:
136 +
137 +I get 10 times more traffic from [Google][1] than from
138 +[Yahoo][2] or [MSN][3].
139 +
140 +[1]: http://google.com/ "Google"
141 +[2]: http://search.yahoo.com/ "Yahoo Search"
142 +[3]: http://search.msn.com/ "MSN Search"
143 +
144 +Output:
145 +
146 +```xml
147 +<p>I get 10 times more traffic from <a href="http://google.com/"
148 +title="Google">Google</a> than from <a href="http://search.yahoo.com/"
149 +title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/"
150 +title="MSN Search">MSN</a>.</p>
151 +```
152 +
153 +The title attribute is optional. Link names may contain letters, numbers and spaces, but are not case sensitive:
154 +
155 +I start my morning with a cup of coffee and
156 +
157 +[The New York Times][NY Times].
158 +
159 +[ny times]: http://www.nytimes.com/
160 +
161 +Output:
162 +
163 +```
164 +<p>I start my morning with a cup of coffee and
165 +<a href="http://www.nytimes.com/">The New York Times</a>.</p>
166 +```
167 +
168 +###IMAGES
169 +
170 +Image syntax is very much like link syntax.
171 +
172 +Inline (titles are optional):
173 +
174 +![alt text](http://lorempixel.com/400/200/ "Title")
175 +
176 +Reference-style:
177 +
178 +```markdown
179 +![alt text][id]
180 +
181 +[id]: http://lorempixel.com/400/200/ "Title"
182 +```
183 +Both of the above examples produce the same output:
184 +
185 +```xml
186 +<img src="/path/to/img.jpg" alt="alt text" title="Title" />
187 +```
...\ No newline at end of file ...\ No newline at end of file
1 +{
2 + "name": "markdown-view",
3 + "version": "1.0.0",
4 + "description": "",
5 + "main": "index.js",
6 + "scripts": {
7 + "start": "node server",
8 + "test": "echo \"Error: no test specified\" && exit 1"
9 + },
10 + "bin": {
11 + "mdview": "bin/mdview"
12 + },
13 + "keywords": [],
14 + "author": "lintry <shenlin00@gmail.com>",
15 + "license": "MIT",
16 + "dependencies": {
17 + "express": "^4.14.0",
18 + "github-markdown-css": "^2.4.1",
19 + "markdown-it": "^8.0.1"
20 + }
21 +}
1 +## 转换markdown为html内容
2 +
3 +## 安装
4 +
5 +```sh
6 +npm install
7 +
8 +```
9 +
10 +## 功能
11 +
12 +#### 指定markdown文件生成html文件
13 +
14 +```javascript
15 +var mdview = require('./lib/mdview')();
16 +var path = require('path');
17 +var result = mdview.renderFile(path.resolve(process.cwd(), 'readme.md'));
18 +```
19 +
20 +
21 +
22 +####命令输出html内容
23 +
24 +```sh
25 +bin/mdview readme.md
26 +```
27 +
28 +
29 +
30 +#### 启动服务
31 +
32 +```sh
33 +npm start
34 +```
35 +
36 +> 打开[首页](http://localhost:3000)查看readme.md的显示效果👇
37 +>
38 +> - 首页:http://loalhost:3000
39 +> - 指定md文件: http://localhost:3000/md/sample.md
40 +> - 选择样式主题:http://localhost:3000/?t=github-markdown
41 +
42 +
43 +
44 +
45 +#### 可选择的主题
46 +
47 +- github-markdown (***修改于: https://github.com/sindresorhus/github-markdown-css***)
48 +- clearness (***以下皆来源于:https://github.com/rhiokim/markdown-css***)
49 +- clearness-dark
50 +- github
51 +- github-rhio
52 +- haroopad
53 +- metro-vibes
54 +- metro-vibes-dark
55 +- node-dark
56 +- solarized-dark
57 +- solarized-light
58 +- wood
59 +- wood-ri
...\ No newline at end of file ...\ No newline at end of file
1 +var express = require('express')
2 +var app = express()
3 +
4 +const mdview = require('./lib/mdview')(),
5 + path = require('path');
6 +
7 +const MARKDOWN_FILE_BASE = process.cwd();
8 +
9 +app.use(express.static(__dirname + '/themes'));
10 +
11 +function sendTemplate(filename, theme) {
12 + let file = path.resolve(MARKDOWN_FILE_BASE, filename);
13 + var result = mdview.renderFile(file);
14 + theme = theme || 'github-markdown';
15 + return `
16 + <!DOCTYPE html>
17 + <html>
18 + <head>
19 + <meta charset=utf-8>
20 + <title>less theme for standard markdown</title>
21 + <meta name="viewport" content="width=device-width, initial-scale=1.0">
22 + <link rel="stylesheet" href="/markdown.css">
23 + <link rel="stylesheet" href="/${theme}/${theme}.css">
24 + </head>
25 + <body>
26 + <div class='markdown ${theme}'>
27 + ${result}
28 + </div>
29 + </body
30 + </html>
31 +`;
32 +}
33 +
34 +app.get('/', function (req, res) {
35 + var query = req.query;
36 + res.send(sendTemplate('readme.md', query.t));
37 +})
38 +
39 +app.get('/*.md', function(req, res){
40 + var url = req.url, urls = url.match(/^\/([\/\w]+\.md)/), query = req.query;
41 + res.send(sendTemplate(urls[1]||'404.md', query.t));
42 + console.log(query)
43 +})
44 +
45 +const PORT = 3000;
46 +app.listen(PORT)
47 +console.info(`Server is started up by binding ${PORT}. Visit http://localhost:${PORT}`);
1 +/*---------------------------------------------------
2 + LESS Elements 0.9
3 + ---------------------------------------------------
4 + A set of useful LESS mixins
5 + More info at: http://lesselements.com
6 + ---------------------------------------------------*/
7 +/**
8 + * https://github.com/rhiokim/markdown-css
9 + * solarized-light style
10 + * made by rhio.kim
11 + * powered by http://ethanschoonover.com/solarized
12 + */
13 +.clearness-dark {
14 + padding: 20px;
15 + color: #ffffff;
16 + font-size: 15px;
17 + background: #282a36;
18 + -webkit-font-smoothing: antialiased;
19 +}
20 +.clearness-dark a {
21 + color: #e03300;
22 +}
23 +.clearness-dark a:hover {
24 + color: #ff4a14;
25 +}
26 +.clearness-dark h2 {
27 + border-bottom: 1px solid #21232d;
28 + line-height: 1.7em;
29 +}
30 +.clearness-dark h6 {
31 + color: #a4a296;
32 +}
33 +.clearness-dark hr {
34 + border: 1px solid #21232d;
35 +}
36 +.clearness-dark pre > code {
37 + font-size: .9em;
38 +}
39 +.clearness-dark blockquote {
40 + border-left: 4px solid #121319;
41 + padding: 0 15px;
42 + font-style: italic;
43 +}
44 +.clearness-dark table {
45 + background-color: #303241;
46 +}
47 +.clearness-dark table tr th,
48 +.clearness-dark table tr td {
49 + border: 1px solid #4b4e65;
50 +}
51 +.clearness-dark table tr:nth-child(2n) {
52 + background-color: #373a4b;
53 +}
54 +/**
55 + * after less
56 + */
...\ No newline at end of file ...\ No newline at end of file
1 +/*---------------------------------------------------
2 + LESS Elements 0.9
3 + ---------------------------------------------------
4 + A set of useful LESS mixins
5 + More info at: http://lesselements.com
6 + ---------------------------------------------------*/
7 +/**
8 + * https://github.com/rhiokim/markdown-css
9 + * solarized-light style
10 + * made by rhio.kim
11 + * powered by http://ethanschoonover.com/solarized
12 + */
13 +.clearness {
14 + padding: 20px;
15 + color: #737373;
16 + font-size: 15px;
17 + background: #ffffff;
18 + -webkit-font-smoothing: antialiased;
19 +}
20 +.clearness a {
21 + color: #1e6ea7;
22 +}
23 +.clearness a:hover {
24 + color: #268bd2;
25 +}
26 +.clearness h1,
27 +.clearness h2,
28 +.clearness h3,
29 +.clearness h4,
30 +.clearness h5 {
31 + color: #404040;
32 +}
33 +.clearness h2 {
34 + border-bottom: 1px solid #cccccc;
35 + line-height: 1.7em;
36 +}
37 +.clearness h6 {
38 + color: #666666;
39 +}
40 +.clearness hr {
41 + border: 1px solid #e6e6e6;
42 +}
43 +.clearness pre > code {
44 + font-size: .9em;
45 +}
46 +.clearness blockquote {
47 + padding: 0 15px;
48 + font-style: italic;
49 +}
50 +.clearness blockquote:before {
51 + content: "\201C";
52 + font-size: 40px;
53 + margin-left: -20px;
54 + color: #aaa;
55 +}
56 +.clearness table {
57 + background-color: #ffffff;
58 + border-collapse: separate;
59 + border-spacing: 2px;
60 +}
61 +.clearness table tr th,
62 +.clearness table tr td {
63 + border: 0px;
64 + padding: .2em 1em;
65 +}
66 +.clearness table tr th {
67 + border-bottom: 1px solid #bfbfbf;
68 +}
69 +.clearness table tr td {
70 + border-bottom: 1px solid #d9d9d9;
71 +}
72 +.clearness table tr:nth-child(2n) {
73 + background-color: #ffffff;
74 +}
75 +/**
76 + * after less
77 + */
...\ No newline at end of file ...\ No newline at end of file
This diff is collapsed. Click to expand it.
1 +/*
2 +@import url(http://fonts.googleapis.com/css?family=Tauri);
3 +
4 +@import url(http://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700);
5 +*/
6 +/*---------------------------------------------------
7 + LESS Elements 0.9
8 + ---------------------------------------------------
9 + A set of useful LESS mixins
10 + More info at: http://lesselements.com
11 + ---------------------------------------------------*/
12 +/**
13 + * https://github.com/rhiokim/markdown-css
14 + * solarized-light style
15 + * made by rhio.kim
16 + * powered by http://ethanschoonover.com/solarized
17 + */
18 +.github-rhio {
19 + padding: 20px;
20 + color: #222222;
21 + font-family: 'Roboto Condensed', 'Tauri', AppleSDGothicNeo-Medium, Sans-serif;
22 + background: #ffffff;
23 + -webkit-font-smoothing: antialiased;
24 +}
25 +.github-rhio a {
26 + color: #3269a0;
27 +}
28 +.github-rhio a:hover {
29 + color: #4183c4;
30 +}
31 +.github-rhio h2 {
32 + border-bottom: 1px solid #e6e6e6;
33 +}
34 +.github-rhio h6 {
35 + color: #777;
36 +}
37 +.github-rhio hr {
38 + border: 1px solid #e6e6e6;
39 +}
40 +.github-rhio pre > code {
41 + font-size: .9em;
42 + font-family: Consolas, Inconsolata, Courier, monospace;
43 +}
44 +.github-rhio blockquote {
45 + border-left: 4px solid #e6e6e6;
46 + padding: 0 15px;
47 + font-style: italic;
48 +}
49 +.github-rhio table {
50 + background-color: #fafafa;
51 +}
52 +.github-rhio table tr th,
53 +.github-rhio table tr td {
54 + border: 1px solid #e6e6e6;
55 +}
56 +.github-rhio table tr:nth-child(2n) {
57 + background-color: #f2f2f2;
58 +}
59 +/**
60 + * after less
61 + */
1 +/*---------------------------------------------------
2 + LESS Elements 0.9
3 + ---------------------------------------------------
4 + A set of useful LESS mixins
5 + More info at: http://lesselements.com
6 + ---------------------------------------------------*/
7 +/**
8 + * https://github.com/rhiokim/markdown-css
9 + * solarized-light style
10 + * made by rhio.kim
11 + * powered by http://ethanschoonover.com/solarized
12 + */
13 +.github {
14 + padding: 20px;
15 + font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", "Microsoft YaHei", "STHeiti", "SimSun", "Segoe UI", AppleSDGothicNeo-Medium, 'Malgun Gothic', Arial, freesans, sans-serif;
16 + font-size: 15px;
17 + background: #ffffff;
18 + line-height: 1.6;
19 + -webkit-font-smoothing: antialiased;
20 +}
21 +.github a {
22 + color: #3269a0;
23 +}
24 +.github a:hover {
25 + color: #4183c4;
26 +}
27 +.github h2 {
28 + border-bottom: 1px solid #e6e6e6;
29 + line-height: 1.6;
30 +}
31 +.github h6 {
32 + color: #777;
33 +}
34 +.github hr {
35 + border: 1px solid #e6e6e6;
36 +}
37 +.github pre > code {
38 + font-size: .9em;
39 + font-family: Consolas, Inconsolata, Courier, monospace;
40 +}
41 +.github p > code,
42 +.github li > code,
43 +.github td > code,
44 +.github h1 > code,
45 +.github h2 > code,
46 +.github h3 > code,
47 +.github h4 > code,
48 +.github h5 > code,
49 +.github h6 > code,
50 +.github blockquote > code {
51 + background-color: rgba(0, 0, 0, 0.07);
52 + font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
53 + font-size: 85%;
54 + padding: 0.2em 0.5em;
55 + border: 0;
56 +}
57 +.github blockquote {
58 + border-left: 4px solid #e6e6e6;
59 + padding: 0 15px;
60 + font-style: italic;
61 +}
62 +.github table {
63 + background-color: #fafafa;
64 +}
65 +.github table tr th,
66 +.github table tr td {
67 + border: 1px solid #e6e6e6;
68 +}
69 +.github table tr:nth-child(2n) {
70 + background-color: #f2f2f2;
71 +}
72 +/**
73 + * after less
74 + */
1 +/*
2 +@import url(http://fonts.googleapis.com/css?family=Tauri);
3 +
4 +@import url(http://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700);
5 +*/
6 +/*---------------------------------------------------
7 + LESS Elements 0.9
8 + ---------------------------------------------------
9 + A set of useful LESS mixins
10 + More info at: http://lesselements.com
11 + ---------------------------------------------------*/
12 +/**
13 + * https://github.com/rhiokim/markdown-css
14 + * solarized-light style
15 + * made by rhio.kim
16 + * powered by http://ethanschoonover.com/solarized
17 + */
18 +.haroopad {
19 + padding: 20px;
20 + color: #222222;
21 + font-size: 15px;
22 + font-family: "Roboto Condensed", "Tauri", "Hiragino Sans GB", "Microsoft YaHei", "STHeiti", "SimSun", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", 'Segoe UI', AppleSDGothicNeo-Medium, 'Malgun Gothic', Verdana, Tahoma, sans-serif;
23 + background: #ffffff;
24 + line-height: 1.6;
25 + -webkit-font-smoothing: antialiased;
26 +}
27 +.haroopad a {
28 + color: #3269a0;
29 +}
30 +.haroopad a:hover {
31 + color: #4183c4;
32 +}
33 +.haroopad h2 {
34 + border-bottom: 1px solid #e6e6e6;
35 +}
36 +.haroopad h6 {
37 + color: #777;
38 +}
39 +.haroopad hr {
40 + border: 1px solid #e6e6e6;
41 +}
42 +.haroopad p > code,
43 +.haroopad li > code,
44 +.haroopad td > code,
45 +.haroopad h1 > code,
46 +.haroopad h2 > code,
47 +.haroopad h3 > code,
48 +.haroopad h4 > code,
49 +.haroopad h5 > code,
50 +.haroopad h6 > code,
51 +.haroopad blockquote > code {
52 + font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
53 + font-size: 85%;
54 + background-color: rgba(0, 0, 0, 0.02);
55 + padding: 0.2em 0.5em;
56 + border: 1px solid #efefef;
57 +}
58 +.haroopad pre > code {
59 + font-size: 1em;
60 + letter-spacing: -1px;
61 + font-weight: bold;
62 +}
63 +.haroopad blockquote {
64 + border-left: 4px solid #e6e6e6;
65 + padding: 0 15px;
66 + color: #777;
67 +}
68 +.haroopad table {
69 + background-color: #fafafa;
70 +}
71 +.haroopad table tr th,
72 +.haroopad table tr td {
73 + border: 1px solid #e6e6e6;
74 +}
75 +.haroopad table tr:nth-child(2n) {
76 + background-color: #f2f2f2;
77 +}
78 +/**
79 + * after less
80 + */
81 +/*
82 +.haroopad {
83 +
84 + img {
85 + .bordered(@border-color, @border-color, @border-color, @border-color);
86 + .rounded(3px);
87 + .box-shadow(0 0 7px darken(@border-color, 18%));
88 +
89 + &:hover {
90 + -webkit-animation-duration: 1s;
91 + -webkit-animation-delay: .2s;
92 + .pulse;
93 + }
94 + }
95 +
96 + h1 {
97 + -webkit-animation-duration: .5s;
98 + -webkit-animation-delay: .2s;
99 + .tada;
100 + }
101 +
102 + &>ul {
103 + &>li {
104 + -webkit-animation-duration: .5s;
105 + -webkit-animation-delay: .2s;
106 + .fadeInLeft;
107 + }
108 + }
109 +
110 +}
111 +*/
1 +/**
2 + * standard markdown style
3 + */
4 +.markdown {
5 + font-family: "Hiragino Sans GB", "Microsoft YaHei", "STHeiti", "SimSun", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", 'Segoe UI', AppleSDGothicNeo-Medium, 'Malgun Gothic', Verdana, Tahoma, sans-serif;
6 + padding: 20px;
7 +}
8 +.markdown a {
9 + text-decoration: none;
10 + vertical-align: baseline;
11 +}
12 +.markdown a:hover {
13 + text-decoration: underline;
14 +}
15 +.markdown h1 {
16 + font-size: 2.2em;
17 + font-weight: bold;
18 + margin: 1.5em 0 1em 0;
19 +}
20 +.markdown h2 {
21 + font-size: 1.8em;
22 + font-weight: bold;
23 + margin: 1.275em 0 0.85em 0;
24 +}
25 +.markdown h3 {
26 + font-size: 1.6em;
27 + font-weight: bold;
28 + margin: 1.125em 0 0.75em 0;
29 +}
30 +.markdown h4 {
31 + font-size: 1.4em;
32 + font-weight: bold;
33 + margin: 0.99em 0 0.66em 0;
34 +}
35 +.markdown h5 {
36 + font-size: 1.2em;
37 + font-weight: bold;
38 + margin: 0.855em 0 0.57em 0;
39 +}
40 +.markdown h6 {
41 + font-size: 1em;
42 + font-weight: bold;
43 + margin: 0.75em 0 0.5em 0;
44 +}
45 +.markdown h1:first-child,
46 +.markdown h2:first-child,
47 +.markdown h3:first-child,
48 +.markdown h4:first-child,
49 +.markdown h5:first-child,
50 +.markdown h6:first-child {
51 + margin-top: 0;
52 +}
53 +.markdown h1 + p,
54 +.markdown h2 + p,
55 +.markdown h3 + p,
56 +.markdown h4 + p,
57 +.markdown h5 + p,
58 +.markdown h6 + p {
59 + margin-top: 0;
60 +}
61 +.markdown hr {
62 + border: 1px solid #cccccc;
63 +}
64 +.markdown p {
65 + margin: 1em 0;
66 + word-wrap: break-word;
67 +}
68 +.markdown ol {
69 + list-style-type: decimal;
70 +}
71 +.markdown li {
72 + display: list-item;
73 + line-height: 1.4em;
74 +}
75 +.markdown blockquote {
76 + margin: 1em 20px;
77 +}
78 +.markdown blockquote > :first-child {
79 + margin-top: 0;
80 +}
81 +.markdown blockquote > :last-child {
82 + margin-bottom: 0;
83 +}
84 +.markdown blockquote cite:before {
85 + content: '\2014 \00A0';
86 +}
87 +.markdown .code {
88 + border-radius: 3px;
89 + word-wrap: break-word;
90 +}
91 +.markdown pre {
92 + border-radius: 3px;
93 + word-wrap: break-word;
94 + border: 1px solid #cccccc;
95 + overflow: auto;
96 + padding: .5em;
97 +}
98 +.markdown pre code {
99 + border: 0;
100 + display: block;
101 +}
102 +.markdown pre.hljs,
103 +.markdown pre > code {
104 + font-family: Consolas, Inconsolata, Courier, monospace;
105 + font-weight: bold;
106 + white-space: pre;
107 +}
108 +.markdown code {
109 + border-radius: 3px;
110 + word-wrap: break-word;
111 + border: 1px solid #cccccc;
112 + padding: 0 5px;
113 + margin: 0 2px;
114 +}
115 +.markdown img {
116 + max-width: 100%;
117 +}
118 +.markdown mark {
119 + color: #000;
120 + background-color: #fcf8e3;
121 +}
122 +.markdown table {
123 + padding: 0;
124 + border-collapse: collapse;
125 + border-spacing: 0;
126 + margin-bottom: 16px;
127 +}
128 +.markdown table tr th,
129 +.markdown table tr td {
130 + border: 1px solid #cccccc;
131 + margin: 0;
132 + padding: 6px 13px;
133 +}
134 +.markdown table tr th {
135 + font-weight: bold;
136 +}
137 +.markdown table tr th > :first-child {
138 + margin-top: 0;
139 +}
140 +.markdown table tr th > :last-child {
141 + margin-bottom: 0;
142 +}
143 +.markdown table tr td > :first-child {
144 + margin-top: 0;
145 +}
146 +.markdown table tr td > :last-child {
147 + margin-bottom: 0;
148 +}
1 +/*
2 +@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800);
3 +*/
4 +/*---------------------------------------------------
5 + LESS Elements 0.9
6 + ---------------------------------------------------
7 + A set of useful LESS mixins
8 + More info at: http://lesselements.com
9 + ---------------------------------------------------*/
10 +/**
11 + * https://github.com/rhiokim/markdown-css
12 + * made by rhio.kim
13 + */
14 +.metro-vibes-dark {
15 + padding: 20px;
16 + color: #ffffff;
17 + font-size: 15px;
18 + background: #5c5146;
19 + -webkit-font-smoothing: antialiased;
20 +}
21 +.metro-vibes-dark a {
22 + color: #e5b931;
23 +}
24 +.metro-vibes-dark a:hover {
25 + color: #ebc85e;
26 +}
27 +.metro-vibes-dark h1,
28 +.metro-vibes-dark h2,
29 +.metro-vibes-dark h3,
30 +.metro-vibes-dark h4,
31 +.metro-vibes-dark h5 {
32 + font-weight: 400;
33 + letter-spacing: -1px;
34 +}
35 +.metro-vibes-dark h2 {
36 + border-bottom: 1px solid #796a5c;
37 + line-height: 1.7em;
38 +}
39 +.metro-vibes-dark h6 {
40 + color: #777;
41 +}
42 +.metro-vibes-dark hr {
43 + border: 1px solid #3f3730;
44 +}
45 +.metro-vibes-dark p {
46 + line-height: 19px;
47 +}
48 +.metro-vibes-dark p > code {
49 + color: #e86741;
50 + font-size: .9em;
51 +}
52 +.metro-vibes-dark pre > code {
53 + font-size: 1em;
54 + letter-spacing: -1px;
55 + font-weight: normal;
56 +}
57 +.metro-vibes-dark blockquote {
58 + border-left: 4px solid #4e443b;
59 + padding: 0 15px;
60 + font-style: italic;
61 + color: #e86741;
62 +}
63 +.metro-vibes-dark table {
64 + background-color: #564c42;
65 +}
66 +.metro-vibes-dark table tr th,
67 +.metro-vibes-dark table tr td {
68 + border: 1px solid #3f3730;
69 +}
70 +.metro-vibes-dark table tr:nth-child(2n) {
71 + background-color: #4e443b;
72 +}
73 +/**
74 + * after less
75 + */
76 +/*
77 +.haroopad {
78 +
79 + img {
80 + .bordered(@border-color, @border-color, @border-color, @border-color);
81 + .rounded(3px);
82 + .box-shadow(0 0 7px darken(@border-color, 18%));
83 +
84 + &:hover {
85 + -webkit-animation-duration: 1s;
86 + -webkit-animation-delay: .2s;
87 + .pulse;
88 + }
89 + }
90 +
91 + h1 {
92 + -webkit-animation-duration: .5s;
93 + -webkit-animation-delay: .2s;
94 + .tada;
95 + }
96 +
97 + &>ul {
98 + &>li {
99 + -webkit-animation-duration: .5s;
100 + -webkit-animation-delay: .2s;
101 + .fadeInLeft;
102 + }
103 + }
104 +
105 +}
106 +*/
1 +/*
2 +@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800);
3 +*/
4 +/*---------------------------------------------------
5 + LESS Elements 0.9
6 + ---------------------------------------------------
7 + A set of useful LESS mixins
8 + More info at: http://lesselements.com
9 + ---------------------------------------------------*/
10 +/**
11 + * https://github.com/rhiokim/markdown-css
12 + * made by rhio.kim
13 + */
14 +.metro-vibes {
15 + padding: 20px;
16 + color: #8e8071;
17 + font-size: 15px;
18 + background: #ffffff;
19 + -webkit-font-smoothing: antialiased;
20 +}
21 +.metro-vibes a {
22 + color: #3269a0;
23 +}
24 +.metro-vibes a:hover {
25 + color: #4183c4;
26 +}
27 +.metro-vibes h1,
28 +.metro-vibes h2,
29 +.metro-vibes h3,
30 +.metro-vibes h4,
31 +.metro-vibes h5 {
32 + font-weight: 400;
33 + color: #5c5146;
34 + letter-spacing: -1px;
35 +}
36 +.metro-vibes h2 {
37 + border-bottom: 1px solid #e6e6e6;
38 + line-height: 1.7em;
39 +}
40 +.metro-vibes h6 {
41 + color: #777;
42 +}
43 +.metro-vibes hr {
44 + border: 1px solid #e6e6e6;
45 +}
46 +.metro-vibes p {
47 + line-height: 19px;
48 +}
49 +.metro-vibes p > code {
50 + color: #e86741;
51 + font-size: .9em;
52 +}
53 +.metro-vibes pre > code {
54 + font-size: 1em;
55 + letter-spacing: -1px;
56 + font-weight: normal;
57 +}
58 +.metro-vibes blockquote {
59 + border-left: 4px solid #e6e6e6;
60 + padding: 0 15px;
61 + font-style: italic;
62 + color: #e86741;
63 +}
64 +.metro-vibes table {
65 + background-color: #fafafa;
66 +}
67 +.metro-vibes table tr th,
68 +.metro-vibes table tr td {
69 + border: 1px solid #e6e6e6;
70 +}
71 +.metro-vibes table tr:nth-child(2n) {
72 + background-color: #f2f2f2;
73 +}
74 +/**
75 + * after less
76 + */
77 +/*
78 +.haroopad {
79 +
80 + img {
81 + .bordered(@border-color, @border-color, @border-color, @border-color);
82 + .rounded(3px);
83 + .box-shadow(0 0 7px darken(@border-color, 18%));
84 +
85 + &:hover {
86 + -webkit-animation-duration: 1s;
87 + -webkit-animation-delay: .2s;
88 + .pulse;
89 + }
90 + }
91 +
92 + h1 {
93 + -webkit-animation-duration: .5s;
94 + -webkit-animation-delay: .2s;
95 + .tada;
96 + }
97 +
98 + &>ul {
99 + &>li {
100 + -webkit-animation-duration: .5s;
101 + -webkit-animation-delay: .2s;
102 + .fadeInLeft;
103 + }
104 + }
105 +
106 +}
107 +*/
1 +/*---------------------------------------------------
2 + LESS Elements 0.9
3 + ---------------------------------------------------
4 + A set of useful LESS mixins
5 + More info at: http://lesselements.com
6 + ---------------------------------------------------*/
7 +/**
8 + * https://github.com/rhiokim/markdown-css
9 + * solarized-dark style
10 + * made by rhio.kim
11 + * powered by http://ethanschoonover.com/solarized
12 + */
13 +.node-dark {
14 + padding: 20px;
15 + color: #d2d8ba;
16 + font-size: 15px;
17 + background: #33342d;
18 + -webkit-font-smoothing: antialiased;
19 +}
20 +.node-dark a {
21 + color: #639400;
22 +}
23 +.node-dark a:hover {
24 + color: #85c700;
25 +}
26 +.node-dark h1,
27 +.node-dark h2,
28 +.node-dark h3,
29 +.node-dark h4,
30 +.node-dark h5 {
31 + color: #eee;
32 +}
33 +.node-dark h2 {
34 + border-bottom: 1px solid #4e4f45;
35 + line-height: 1.7em;
36 +}
37 +.node-dark h6 {
38 + color: #694f00;
39 +}
40 +.node-dark hr {
41 + border: 1px solid #2b2c26;
42 +}
43 +.node-dark pre > code {
44 + font-size: 1em;
45 +}
46 +.node-dark blockquote {
47 + border-left: 4px solid #181915;
48 + padding: 0 15px;
49 + font-style: italic;
50 +}
51 +.node-dark table {
52 + background-color: #3d3e36;
53 +}
54 +.node-dark table tr th,
55 +.node-dark table tr td {
56 + border: 1px solid #5f6154;
57 +}
58 +.node-dark table tr:nth-child(2n) {
59 + background-color: #46483e;
60 +}
61 +/**
62 + * after less
63 + */
...\ No newline at end of file ...\ No newline at end of file
1 +/*---------------------------------------------------
2 + LESS Elements 0.9
3 + ---------------------------------------------------
4 + A set of useful LESS mixins
5 + More info at: http://lesselements.com
6 + ---------------------------------------------------*/
7 +/**
8 + * https://github.com/rhiokim/markdown-css
9 + * solarized-dark style
10 + * made by rhio.kim
11 + * powered by http://ethanschoonover.com/solarized
12 + */.solarized-dark {
13 + padding: 20px;
14 + color: #839496;
15 + font-size: 15px;
16 + background: #002b36;
17 + -webkit-font-smoothing: antialiased;
18 +}
19 +.solarized-dark a {
20 + color: #1e6ea7;
21 +}
22 +.solarized-dark a:hover {
23 + color: #268bd2;
24 +}
25 +.solarized-dark h1,
26 +.solarized-dark h2,
27 +.solarized-dark h3,
28 +.solarized-dark h4,
29 +.solarized-dark h5 {
30 + color: #b58900;
31 +}
32 +.solarized-dark h2 {
33 + border-bottom: 1px solid #003f50;
34 + line-height: 1.7em;
35 +}
36 +.solarized-dark h6 {
37 + color: #694f00;
38 +}
39 +.solarized-dark hr {
40 + border: 1px solid #001f27;
41 +}
42 +.solarized-dark code {
43 + border: 1px solid #00475a;
44 +}
45 +.solarized-dark pre {
46 + border: 1px solid #00475a;
47 +}
48 +.solarized-dark pre > code {
49 + font-size: .9em;
50 +}
51 +.solarized-dark blockquote {
52 + border-left: 4px solid #005469;
53 + padding: 0 15px;
54 + font-style: italic;
55 +}
56 +.solarized-dark table {
57 + background-color: #003441;
58 +}
59 +.solarized-dark table tr th,
60 +.solarized-dark table tr td {
61 + border: 1px solid #005065;
62 +}
63 +.solarized-dark table tr:nth-child(2n) {
64 + background-color: #003b4b;
65 +}
66 +/**
67 + * after less
68 + */
...\ No newline at end of file ...\ No newline at end of file
1 +/*---------------------------------------------------
2 + LESS Elements 0.9
3 + ---------------------------------------------------
4 + A set of useful LESS mixins
5 + More info at: http://lesselements.com
6 + ---------------------------------------------------*/
7 +/**
8 + * https://github.com/rhiokim/markdown-css
9 + * solarized-light style
10 + * made by rhio.kim
11 + * powered by http://ethanschoonover.com/solarized
12 + */.solarized-light {
13 + padding: 20px;
14 + color: #737373;
15 + font-size: 15px;
16 + background: #fdf6e3;
17 + -webkit-font-smoothing: antialiased;
18 +}
19 +.solarized-light a {
20 + color: #1e6ea7;
21 +}
22 +.solarized-light a:hover {
23 + color: #268bd2;
24 +}
25 +.solarized-light h1,
26 +.solarized-light h2,
27 +.solarized-light h3,
28 +.solarized-light h4,
29 +.solarized-light h5 {
30 + color: #b58900;
31 +}
32 +.solarized-light h2 {
33 + border-bottom: 1px solid #f6d784;
34 + line-height: 1.7em;
35 +}
36 +.solarized-light h6 {
37 + color: #9c7600;
38 +}
39 +.solarized-light hr {
40 + border: 1px solid #fae7b3;
41 +}
42 +.solarized-light pre > code {
43 + font-size: .9em;
44 +}
45 +.solarized-light blockquote {
46 + border-left: 4px solid #fae7b3;
47 + padding: 0 15px;
48 + font-style: italic;
49 +}
50 +.solarized-light table {
51 + background-color: #fdf4dd;
52 +}
53 +.solarized-light table tr th,
54 +.solarized-light table tr td {
55 + border: 1px solid #fae7b3;
56 +}
57 +.solarized-light table tr:nth-child(2n) {
58 + background-color: #fef8ea;
59 +}
60 +/**
61 + * after less
62 + */
...\ No newline at end of file ...\ No newline at end of file
1 +/*
2 +@import url(http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic);
3 +*/
4 +/*---------------------------------------------------
5 + LESS Elements 0.9
6 + ---------------------------------------------------
7 + A set of useful LESS mixins
8 + More info at: http://lesselements.com
9 + ---------------------------------------------------*/
10 +/**
11 + * https://github.com/rhiokim/markdown-css
12 + * made by rhio.kim
13 + */
14 +.wood-ri {
15 + padding: 20px;
16 + color: #000000;
17 + font-size: 15px;
18 + background-image: url('wood.jpg');
19 + background-attachment: fixed;
20 + background-repeat: no-repeat;
21 + background-size: cover;
22 + -webkit-font-smoothing: antialiased;
23 + text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.7);
24 +}
25 +.wood-ri a {
26 + color: #004794;
27 +}
28 +.wood-ri a:hover {
29 + color: #005fc7;
30 +}
31 +.wood-ri h1,
32 +.wood-ri h2,
33 +.wood-ri h3,
34 +.wood-ri h4,
35 +.wood-ri h5 {
36 + font-weight: 400;
37 + color: #000000;
38 + letter-spacing: -1px;
39 +}
40 +.wood-ri h2 {
41 + border-bottom: 1px solid #e6e6e6;
42 + line-height: 1.7em;
43 +}
44 +.wood-ri h6 {
45 + color: #777;
46 +}
47 +.wood-ri hr {
48 + border: 1px solid #e6e6e6;
49 +}
50 +.wood-ri p {
51 + line-height: 19px;
52 +}
53 +.wood-ri p > code {
54 + color: #130079;
55 + font-size: .9em;
56 +}
57 +.wood-ri pre > code {
58 + font-size: 1em;
59 + letter-spacing: -1px;
60 + font-weight: normal;
61 + text-shadow: none;
62 +}
63 +.wood-ri blockquote {
64 + border-left: 4px solid #ffffff;
65 + padding: 0 15px;
66 + font-style: italic;
67 + color: #130079;
68 +}
69 +.wood-ri table {
70 + background-color: #fafafa;
71 +}
72 +.wood-ri table tr th,
73 +.wood-ri table tr td {
74 + border: 1px solid #e6e6e6;
75 +}
76 +.wood-ri table tr:nth-child(2n) {
77 + background-color: #f2f2f2;
78 +}
79 +/**
80 + * after less
81 + */
82 +/*
83 +.haroopad {
84 +
85 + img {
86 + .bordered(@border-color, @border-color, @border-color, @border-color);
87 + .rounded(3px);
88 + .box-shadow(0 0 7px darken(@border-color, 18%));
89 +
90 + &:hover {
91 + -webkit-animation-duration: 1s;
92 + -webkit-animation-delay: .2s;
93 + .pulse;
94 + }
95 + }
96 +
97 + h1 {
98 + -webkit-animation-duration: .5s;
99 + -webkit-animation-delay: .2s;
100 + .tada;
101 + }
102 +
103 + &>ul {
104 + &>li {
105 + -webkit-animation-duration: .5s;
106 + -webkit-animation-delay: .2s;
107 + .fadeInLeft;
108 + }
109 + }
110 +
111 +}
112 +*/
1 +/*
2 +@import url(http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic);
3 +*/
4 +/*---------------------------------------------------
5 + LESS Elements 0.9
6 + ---------------------------------------------------
7 + A set of useful LESS mixins
8 + More info at: http://lesselements.com
9 + ---------------------------------------------------*/
10 +/**
11 + * https://github.com/rhiokim/markdown-css
12 + * made by rhio.kim
13 + */
14 +.wood {
15 + padding: 20px;
16 + color: #ffffff;
17 + font-size: 15px;
18 + background-image: url('wood.jpg');
19 + background-attachment: fixed;
20 + background-repeat: no-repeat;
21 + background-size: cover;
22 + -webkit-font-smoothing: antialiased;
23 + text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
24 +}
25 +.wood a {
26 + color: #83ebff;
27 +}
28 +.wood a:hover {
29 + color: #b6f3ff;
30 +}
31 +.wood h1,
32 +.wood h2,
33 +.wood h3,
34 +.wood h4,
35 +.wood h5 {
36 + font-weight: 400;
37 + color: #e6e6e6;
38 + letter-spacing: -1px;
39 +}
40 +.wood h2 {
41 + border-bottom: 1px solid #e6e6e6;
42 + line-height: 1.7em;
43 +}
44 +.wood h6 {
45 + color: #777;
46 +}
47 +.wood hr {
48 + border: 1px solid #e6e6e6;
49 +}
50 +.wood p {
51 + line-height: 19px;
52 +}
53 +.wood p > code {
54 + color: #B5FA7F;
55 + font-size: .9em;
56 +}
57 +.wood pre > code {
58 + font-size: 1em;
59 + letter-spacing: -1px;
60 + font-weight: normal;
61 + text-shadow: none;
62 +}
63 +.wood blockquote {
64 + border-left: 4px solid #e6e6e6;
65 + padding: 0 15px;
66 + font-style: italic;
67 + color: #B5FA7F;
68 +}
69 +.wood table {
70 + background-color: #474747;
71 +}
72 +.wood table tr th,
73 +.wood table tr td {
74 + border: 1px solid #333333;
75 +}
76 +.wood table tr:nth-child(2n) {
77 + background-color: #404040;
78 +}
79 +/**
80 + * after less
81 + */
82 +/*
83 +.haroopad {
84 +
85 + img {
86 + .bordered(@border-color, @border-color, @border-color, @border-color);
87 + .rounded(3px);
88 + .box-shadow(0 0 7px darken(@border-color, 18%));
89 +
90 + &:hover {
91 + -webkit-animation-duration: 1s;
92 + -webkit-animation-delay: .2s;
93 + .pulse;
94 + }
95 + }
96 +
97 + h1 {
98 + -webkit-animation-duration: .5s;
99 + -webkit-animation-delay: .2s;
100 + .tada;
101 + }
102 +
103 + &>ul {
104 + &>li {
105 + -webkit-animation-duration: .5s;
106 + -webkit-animation-delay: .2s;
107 + .fadeInLeft;
108 + }
109 + }
110 +
111 +}
112 +*/