polytexnic 1.10.0 → 1.10.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97df7a0f9860c92ab7a0f07d95c8aa4b1fd6a0416f0c64cdf1179d02884b21b9
4
- data.tar.gz: 2d8f24f8eb0d2be40e1fd37fa81599df119684560e807ad8de6b151fedb36eb0
3
+ metadata.gz: '08ef6b16e688ae517db09f1ccd14da9a9861fc14d0b7576267f2704ee28e2223'
4
+ data.tar.gz: 1d19e497423591bf533a01c7870e93fbff311639a35584c2fce4b2eb5fc70ce2
5
5
  SHA512:
6
- metadata.gz: b33bea198951ee6f66a4f9e90127e440f406b8cc7f54a5b07ca07142a365f1cdb971a15f6be415c8230dc7959e8a5a3eb4fa260efe88906db1c983581fb97181
7
- data.tar.gz: 7e29667969dcd57f6dfb4bde2ce175d2c0510402658a3238efbccf46fae6bf486c230bab3290926dbfd3d5cefa8e473568d5e022c2c459bdc86472e73e29a31c
6
+ metadata.gz: 6fb7f765d2eb5ef17df271b165aa628def5742333e672dd8fa599321e9e550a07af902e914768a2c90123a41ddec53a529677ee84c932d919ce7ce5c99400f50
7
+ data.tar.gz: d69d4ccc81b47e6098462888862813f9a1164232a09b16c473d2f7821fa3a4c24f6f1a540d03147689630c7daf5ac42ff653e6d3ee1ccdea96c6cd2fb689ea68
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- polytexnic (1.10.0)
4
+ polytexnic (1.10.1)
5
5
  json (= 2.3.1)
6
6
  kramdown (= 2.4.0)
7
7
  msgpack (= 1.2.10)
@@ -773,11 +773,6 @@ module Polytexnic
773
773
  def build_heading(node, css_class)
774
774
  node.name = 'div'
775
775
  node['class'] = element_class(css_class)
776
- # Extract theorem content (if any). This super-hacky.
777
- # th_regex = /data-tralics-id=".*?"><strong>.*?<\/strong>(.*?)<\/div>/m
778
- # theorem_content = node.to_xhtml.scan(th_regex).flatten.first
779
- # theorem_content.gsub!("\n\n", '') if theorem_content
780
- # raise theorem_content
781
776
  heading = node.at_css('p')
782
777
  heading.attributes.each do |key, value|
783
778
  node.set_attribute(key, value)
@@ -826,11 +821,6 @@ module Polytexnic
826
821
  full_number << theorem_description
827
822
  end
828
823
  full_number << Nokogiri::XML::Text.new('.', heading)
829
- # # We remove all paragraphs and append the previously extracted
830
- # # theorem content. The desired numbered heading is just the
831
- # # first line, so we split on newline and take the first element.
832
- # number_html = full_number.to_xhtml.split("\n").first
833
- # full_number.inner_html = number_html + theorem_content
834
824
  elsif css_class == 'codelisting'
835
825
  description = node.at_css('.description').content
836
826
  unless description.empty?
@@ -839,7 +829,6 @@ module Polytexnic
839
829
  else
840
830
  full_number << Nokogiri::XML::Text.new('.', heading)
841
831
  end
842
- # raise heading.to_xhtml
843
832
  heading
844
833
  end
845
834
 
@@ -1,3 +1,3 @@
1
1
  module Polytexnic
2
- VERSION = "1.10.0"
2
+ VERSION = "1.10.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polytexnic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl