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 +4 -4
- data/VERSION +1 -1
- data/lib/scholarmarkdown/filter/labelify.rb +6 -0
- data/scholarmarkdown.gemspec +3 -3
- 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: be1020f59dc87b685eacea3509f4ff8d064a6f47
|
4
|
+
data.tar.gz: addf166985eb4b834a664c42f2fc0a5f5fe5ee4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d04cbce0a58111018d7e7fca19b1d45888f393826ab0188f998939abe52b1fd6ba7dcf275d8fa87083eb828196e919801e4a4eef80bf1250c9517cf0ccfab8f
|
7
|
+
data.tar.gz: 9bb7795c068c0dbb01ee9f8c7ffc56b647d4fe035c4bccce37c1e8be451c58fdd8f18f05956fb9a1c08daf0cf16e8c417035089d6aab02c4f69f6136e3ba9d95
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
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
|
data/scholarmarkdown.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
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-
|
11
|
+
date: 2018-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|