arti_mark 0.1.beta1 → 0.1.beta2

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: 62679290ba21c0b408d4fff89c820958fa789ff6
4
- data.tar.gz: a16462606130c072726ce1d86bb0e677ce267ed3
3
+ metadata.gz: ea5f180d2dd60c4f6db67fb8b673956325d66111
4
+ data.tar.gz: bad7e4794e96a3cc9006bb2b41e01207ccd85dc7
5
5
  SHA512:
6
- metadata.gz: 33bdc6ff8f9b6bf47352876b60fbac750a6ea4f616c9f85197af9ce9a08d9773ac33ef6450ee4f63b33ac6bb6696eefa03a7f394c6d46243eb9ced1cc8977122
7
- data.tar.gz: 946a6ef094042486ab500081851c7d8d19e613ae356d5fe0fc98c67eeb3780fe9dd271543f98f6a0cb2f9655849b6976d195126f02c6c951b9efd79c3c555e1c
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:
@@ -43,6 +43,7 @@ module ArtiMark
43
43
  {
44
44
  'd' => TagWriter.create('div', self),
45
45
  'art' => article_writer,
46
+ 'arti' => article_writer,
46
47
  'article' => article_writer
47
48
  }),
48
49
  :line_command =>
@@ -1,3 +1,3 @@
1
1
  module ArtiMark
2
- VERSION = "0.1.beta1"
2
+ VERSION = "0.1.beta2"
3
3
  end
@@ -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')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arti_mark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.beta1
4
+ version: 0.1.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - KOJIMA Satoshi