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 +4 -4
- data/README.md +6 -6
- data/lib/daimon/markdown/redcarpet/html_renderer.rb +1 -1
- data/lib/daimon/markdown/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae2b9dff7997d143c95688d83ff1a686cfe450e8
|
4
|
+
data.tar.gz: 5b4fdadec971299edc9c05f21086f3f18c3369ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2016-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: html-pipeline
|