jekyll-spaceship 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -2
- data/lib/jekyll-spaceship/processors/table-processor.rb +3 -2
- data/lib/jekyll-spaceship/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 818a9e35e951c1474e13a45823e77f9c8d3e4bafc8cd3d9917cf8bfa6b17aa9c
|
4
|
+
data.tar.gz: 1353de14e12326338da7f354e5f0727b139b6ef2763e449b009b5844eca029c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af5a0908c50d7b6e0cd01e963d0b5d2ffe9f8d9c473c7bff2cd4c820fc479e8c109831091eece7a5af375424bf1db751b6e4d5858efae0007e707e60e0fd1010
|
7
|
+
data.tar.gz: fe331223e9f9bb22dbf8c4915d09a5f1902cbffa4de1bf5045106512e6ccb2b3f62d6de5608b8636e444691a9903ea5113e9b6b1c7fcf5cc06d71fd879a5d8d0
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
[![Code Climate](https://codeclimate.com/github/jeffreytse/jekyll-spaceship/badges/gpa.svg)](https://codeclimate.com/github/jeffreytse/jekyll-spaceship)
|
6
6
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/cd56b207f327603662a1/test_coverage)](https://codeclimate.com/github/jeffreytse/jekyll-spaceship/test_coverage)
|
7
7
|
|
8
|
-
A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, youtube, etc.
|
8
|
+
A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, youtube, vimeo, dailymotion, etc.
|
9
9
|
|
10
10
|
## Table of Contents
|
11
11
|
|
@@ -19,6 +19,8 @@ A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, youtu
|
|
19
19
|
- [1.4 Cell Alignment](#cell-alignment)
|
20
20
|
- [1.5 Cell Markdown](#cell-markdown)
|
21
21
|
- [2. MathJax Usage](#2-mathjax-usage)
|
22
|
+
- [2.1 Performance Optimization](#21-performance-optimization)
|
23
|
+
- [2.2 How to use?](#22-how-to-use)
|
22
24
|
- [3. PlantUML Usage](#3-plantuml-usage)
|
23
25
|
- [4. Video Usage](#4-video-usage)
|
24
26
|
- [4.1 Youtube Usage](#youtube-usage)
|
@@ -384,7 +386,7 @@ Rowspan is 4
|
|
384
386
|
|
385
387
|
[MathJax](http://www.mathjax.org/) is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all modern browsers.
|
386
388
|
|
387
|
-
|
389
|
+
Some of the main features of MathJax include:
|
388
390
|
|
389
391
|
- High-quality display of LaTeX, MathML, and AsciiMath notation in HTML pages
|
390
392
|
- Supported in most browsers with no plug-ins, extra fonts, or special
|
@@ -394,6 +396,12 @@ Rowspan is 4
|
|
394
396
|
advanced functionality
|
395
397
|
- Powerful API for integration with other web applications
|
396
398
|
|
399
|
+
#### 2.1 Performance optimization
|
400
|
+
|
401
|
+
At building stage, the MathJax engine script will be added by automatically checking whether there is a math expression in the page, this feature can help you improve the page performance on loading speed.
|
402
|
+
|
403
|
+
#### 2.2 How to use?
|
404
|
+
|
397
405
|
Put your math expression within \$...\$
|
398
406
|
|
399
407
|
```markdown
|
@@ -121,9 +121,10 @@ module Jekyll::Spaceship
|
|
121
121
|
end
|
122
122
|
if result
|
123
123
|
result = result[0]
|
124
|
-
|
124
|
+
colspan = result.scan(/\|/).count
|
125
|
+
scope.row.colspan += colspan
|
125
126
|
cell.content = cell.content.gsub(/(\s*\|)+$/, '')
|
126
|
-
cell.set_attribute('colspan',
|
127
|
+
cell.set_attribute('colspan', colspan + 1)
|
127
128
|
end
|
128
129
|
end
|
129
130
|
|