jekyll-spaceship 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b764caa91610338387d31e7e46e9e8a76bad9de85ae35218e5e555080fe84566
4
- data.tar.gz: ae0a3cb843e45c686f15e467809bf885692809edf54cca48a4667c6cc2685280
3
+ metadata.gz: 818a9e35e951c1474e13a45823e77f9c8d3e4bafc8cd3d9917cf8bfa6b17aa9c
4
+ data.tar.gz: 1353de14e12326338da7f354e5f0727b139b6ef2763e449b009b5844eca029c4
5
5
  SHA512:
6
- metadata.gz: 39c4090c57da17685ae4af607a5267799a71e39df0740c5e9e65ef0de121e28ae4bf735e00a55373f7ce5446424684930ce9864f82578d0eb28ed0e20e68cf80
7
- data.tar.gz: ed8ff5bb71e5763a862c6281c0d7572d3e74f082092d165f925b732e720ab02ea26fdb13bc89a9f4333313aa439aad5d0501cab48e8b9c78d862e08d14f13a03
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
- **Some of the main features of MathJax include:**
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
- scope.row.colspan += result.scan(/\|/).count
124
+ colspan = result.scan(/\|/).count
125
+ scope.row.colspan += colspan
125
126
  cell.content = cell.content.gsub(/(\s*\|)+$/, '')
126
- cell.set_attribute('colspan', scope.row.colspan + 1)
127
+ cell.set_attribute('colspan', colspan + 1)
127
128
  end
128
129
  end
129
130
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Spaceship
5
- VERSION = "0.4.3"
5
+ VERSION = "0.4.4"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-spaceship
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - jeffreytse