diff --git a/Gemfile b/Gemfile index 5dc9f14968..41ab70604b 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,6 @@ source "https://rubygems.org" gem "jekyll", "~> 3.8.6" -gem "nokogiri", "~> 1.10.4" gem "liquid-c" group :development do diff --git a/Gemfile.lock b/Gemfile.lock index 0b4f018ddd..90ecb8cfa7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -47,10 +47,7 @@ GEM rb-inotify (~> 0.9, >= 0.9.7) ruby_dep (~> 1.2) mercenary (0.3.6) - mini_portile2 (2.4.0) multipart-post (2.1.1) - nokogiri (1.10.5) - mini_portile2 (~> 2.4.0) pathutil (0.16.2) forwardable-extended (~> 2.6) premonition (2.0.0) @@ -84,7 +81,6 @@ DEPENDENCIES jekyll-redirect-from jekyll-sitemap liquid-c - nokogiri (~> 1.10.4) premonition (~> 2.0.0) rake tzinfo (~> 1.2) diff --git a/_plugins/jekyll-table-markdown-attribute.rb b/_plugins/jekyll-table-markdown-attribute.rb index f06f7e4ce5..663407cbf8 100644 --- a/_plugins/jekyll-table-markdown-attribute.rb +++ b/_plugins/jekyll-table-markdown-attribute.rb @@ -1,15 +1,3 @@ -require 'jekyll' -require 'nokogiri' - Jekyll::Hooks.register [:pages, :documents], :pre_render do |post| - doc = Nokogiri::HTML.fragment(post.content) - - # Stop if we could't parse with HTML - return content unless doc - - doc.css('td').each do |td| - td.set_attribute('markdown', 'span') - end - - post.content = doc.to_s + post.content = post.content.gsub('