polytexnic 1.10.0 → 1.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/polytexnic/postprocessors/html.rb +0 -11
- data/lib/polytexnic/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08ef6b16e688ae517db09f1ccd14da9a9861fc14d0b7576267f2704ee28e2223'
|
4
|
+
data.tar.gz: 1d19e497423591bf533a01c7870e93fbff311639a35584c2fce4b2eb5fc70ce2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fb7f765d2eb5ef17df271b165aa628def5742333e672dd8fa599321e9e550a07af902e914768a2c90123a41ddec53a529677ee84c932d919ce7ce5c99400f50
|
7
|
+
data.tar.gz: d69d4ccc81b47e6098462888862813f9a1164232a09b16c473d2f7821fa3a4c24f6f1a540d03147689630c7daf5ac42ff653e6d3ee1ccdea96c6cd2fb689ea68
|
data/Gemfile.lock
CHANGED
@@ -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
|
|
data/lib/polytexnic/version.rb
CHANGED