arti_mark 0.1.beta2 → 0.1.beta3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module ArtiMark
2
- VERSION = "0.1.beta2"
2
+ VERSION = "0.1.beta3"
3
3
  end
@@ -565,5 +565,20 @@ describe ArtiMark do
565
565
  ]
566
566
  )
567
567
  end
568
+
569
+ it 'should convert h1 in article after title' do
570
+ text = "stylesheets: css/default.css\ntitle: foo\narticle.atogaki {\n\nh1: あとがき。\n\natogaki\n}"
571
+ artimark = ArtiMark::Document.new(:lang => 'ja', :title => 'the document title')
572
+ converted = artimark.convert(text)
573
+ body = Nokogiri::XML::Document.parse(converted[0]).root.at_xpath('xmlns:body')
574
+ expect(body.element_children[0].selector_and_children).to eq(
575
+ ["article.atogaki",
576
+ ["h1", "あとがき。"],
577
+ ["div.pgroup",
578
+ ["p", "atogaki"]]]
579
+ )
580
+ end
581
+
582
+
568
583
  end
569
584
  end
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.beta2
4
+ version: 0.1.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - KOJIMA Satoshi