arti_mark 0.1.beta1 → 0.1.beta2
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 +4 -4
- data/README.md +0 -2
- data/lib/arti_mark/html/generator.rb +1 -0
- data/lib/arti_mark/version.rb +1 -1
- data/spec/arti_mark_spec.rb +15 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea5f180d2dd60c4f6db67fb8b673956325d66111
|
4
|
+
data.tar.gz: bad7e4794e96a3cc9006bb2b41e01207ccd85dc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19f4378e07bb418869482366e8c525c45bb65d175b23532f3dc4cdc1b80fb8e2b86d1d4210cc78973163ef2ae29754830b8a92491ca5d708b65e3d83bd4170ef
|
7
|
+
data.tar.gz: d59262778224de2eda466a835cad0429fbd16622ce92ddb3e40d41c48a849126b1526bae3d9a493322ac8095b902e0a0975b379fd447326f2215d6f7c7edca12
|
data/README.md
CHANGED
@@ -4,8 +4,6 @@ ArtiMark is a simple text markup language. It is designed to create XHTML files
|
|
4
4
|
|
5
5
|
**CAUTION This is very early alpha version, so it's not stable at all.**
|
6
6
|
|
7
|
-
Reimplemented new version will be released on the end of Feb. 2014. Some syntax will be changed on the new version. The name of the library may change.
|
8
|
-
|
9
7
|
## Installation
|
10
8
|
|
11
9
|
Add this line to your application's Gemfile:
|
data/lib/arti_mark/version.rb
CHANGED
data/spec/arti_mark_spec.rb
CHANGED
@@ -177,6 +177,21 @@ describe ArtiMark do
|
|
177
177
|
)
|
178
178
|
end
|
179
179
|
|
180
|
+
it 'should convert article with other notation' do
|
181
|
+
text = "arti {\n in the article.\n}"
|
182
|
+
artimark = ArtiMark::Document.new(:lang => 'ja', :title => 'the document title')
|
183
|
+
converted = artimark.convert(text)
|
184
|
+
body = Nokogiri::XML::Document.parse(converted[0]).root.at_xpath('xmlns:body')
|
185
|
+
expect(body.element_children[0].selector_and_children).to eq(
|
186
|
+
['article',
|
187
|
+
['div.pgroup',
|
188
|
+
['p', 'in the article.']
|
189
|
+
]
|
190
|
+
]
|
191
|
+
)
|
192
|
+
end
|
193
|
+
|
194
|
+
|
180
195
|
it 'should handle block image' do
|
181
196
|
text = "this is normal line.\nimage(./image1.jpg, alt text): caption text"
|
182
197
|
artimark = ArtiMark::Document.new(:lang => 'ja', :title => 'the document title')
|