daimon-markdown 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0519e7312aeb35fdb754b647f4f171f0089c0401
4
- data.tar.gz: b09bb93de70ff1f56cc310d68b9fb05f3e68719a
3
+ metadata.gz: ae2b9dff7997d143c95688d83ff1a686cfe450e8
4
+ data.tar.gz: 5b4fdadec971299edc9c05f21086f3f18c3369ef
5
5
  SHA512:
6
- metadata.gz: 6c1527a7981012520b247e03dde81bbf615bda5ef3defdce68d651d0448736bf1c34d72d4904445b890e360c6a33371b6d2ff3625d642e5f41f9de0a426a6b3c
7
- data.tar.gz: 701223eb5b2d3ab388e3621f2a8b639492766bcea52d420b72973b9a1807a47e62ba3f784643b7c2bee1e8899fdaa0da22911bb325c90d6a4f538cf33d18b96d
6
+ metadata.gz: b071d5ace5504e2aecc999e3e0f4c7c119cb5a04c88ed5cf50b353425955e197c294c91ac702eb8a5b5a4211bbd53ed9d695a6b91ce1de0cdf73173c91b99d1f
7
+ data.tar.gz: 5e0eb9b3cdf96ad696586d3c6add8634e6b50578fbff2332f6bad5f47ddfe9c68d239e4257dbc71e41278e2614826f242b5977b354c8cb9e9028d171ed49af8d
data/README.md CHANGED
@@ -60,16 +60,16 @@ Currently support LaTeX and AsciiMath.
60
60
  ```text
61
61
  # Inline style
62
62
 
63
- This is a expression {{math("$1 + 1 = 2$")}}. And {{math("$2^10 = 1024$")}} .
63
+ This is a expression {{math("$1 + 1 = 2$")}}. And {{math("$2^{10} = 1024$")}} .
64
64
 
65
65
  # Block style
66
66
 
67
67
  {{math("$$
68
- \\begin{aligned}
69
- \\dot{x} & = \\sigma(y-x) \\\\
70
- \\dot{y} & = \\rho x - y - xz \\\\
71
- \\dot{z} & = -\\beta z + xy
72
- \\end{aligned}
68
+ \begin{aligned}
69
+ \dot{x} & = \sigma(y-x) \\
70
+ \dot{y} & = \rho x - y - xz \\
71
+ \dot{z} & = -\beta z + xy
72
+ \end{aligned}
73
73
  $$")}}
74
74
  ```
75
75
 
@@ -21,13 +21,13 @@ module Daimon
21
21
  document = ""
22
22
  scanner = StringScanner.new(full_document)
23
23
  loop do
24
+ break if scanner.eos?
24
25
  if scanner.match?(/{{.+?}}/m)
25
26
  document << @plugins.shift
26
27
  scanner.pos += scanner.matched_size
27
28
  else
28
29
  document << scanner.getch
29
30
  end
30
- break if scanner.eos?
31
31
  end
32
32
  document
33
33
  end
@@ -1,5 +1,5 @@
1
1
  module Daimon
2
2
  module Markdown
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daimon-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - daimon developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-24 00:00:00.000000000 Z
11
+ date: 2016-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html-pipeline