scholarmarkdown 1.2.0 → 1.3.0

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: ab92cd5a3e693ae301145c8f37cbd24a53b9f0e6
4
- data.tar.gz: d0615422278728b44ac41e22c8cf42823803ce5b
3
+ metadata.gz: be1020f59dc87b685eacea3509f4ff8d064a6f47
4
+ data.tar.gz: addf166985eb4b834a664c42f2fc0a5f5fe5ee4e
5
5
  SHA512:
6
- metadata.gz: 7fe16599f6f09d18ac12d7466a2f7325dab22ac9fb315859b670db2f1b38a7b3bfa04dab7aec644d1ea3678a0e633479585a9e48138644159ef612786422d12e
7
- data.tar.gz: b40faaaddf3dfb233d286a07cc848f7a8ed252a3c0bd376c40ccc95849ca864a55e4eef37cae475c2139c5285cb13b20ef2afae73399b50d42b1aa8be6c0e5e7
6
+ metadata.gz: 1d04cbce0a58111018d7e7fca19b1d45888f393826ab0188f998939abe52b1fd6ba7dcf275d8fa87083eb828196e919801e4a4eef80bf1250c9517cf0ccfab8f
7
+ data.tar.gz: 9bb7795c068c0dbb01ee9f8c7ffc56b647d4fe035c4bccce37c1e8be451c58fdd8f18f05956fb9a1c08daf0cf16e8c417035089d6aab02c4f69f6136e3ba9d95
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.3.0
@@ -30,6 +30,8 @@ def label_type_for tag, attribute_list
30
30
  'Section'
31
31
  when :h3
32
32
  'Subsection'
33
+ when :h4
34
+ 'Subsubsection'
33
35
  when :figure
34
36
  unless parse_attributes(attribute_list)[:class].nil?
35
37
  for clazz in parse_attributes(attribute_list)[:class].split(' ') do
@@ -58,8 +60,12 @@ def number_for type
58
60
  case type
59
61
  when 'Section'
60
62
  @reference_counts['Subsection'] = 0
63
+ @reference_counts['Subsubsection'] = 0
61
64
  when 'Subsection'
65
+ @reference_counts['Subsubsection'] = 0
62
66
  number = "#{reference_counts['Section']}.#{number}"
67
+ when 'Subsubsection'
68
+ number = "#{reference_counts['Section']}.#{reference_counts['Subsection']}.#{number}"
63
69
  end
64
70
  number
65
71
  end
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: scholarmarkdown 1.2.0 ruby lib
5
+ # stub: scholarmarkdown 1.3.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "scholarmarkdown"
9
- s.version = "1.2.0"
9
+ s.version = "1.3.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Ruben Taelman"]
14
- s.date = "2018-05-22"
14
+ s.date = "2018-05-23"
15
15
  s.email = "rubensworks@gmail.com"
16
16
  s.executables = ["generate-scholarmarkdown"]
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scholarmarkdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Taelman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-22 00:00:00.000000000 Z
11
+ date: 2018-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n