瀏覽代碼

Remove weird <hr> tag

See https://github.com/damms005/devdocs/commit/8c9fbd859b71a2525b94a35ea994393ce2b6fedb#commitcomment-50091018
Damilola Olowookere 4 年之前
父節點
當前提交
3bc074dd6d
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      lib/docs/filters/tailwindcss/clean_html.rb

+ 3 - 0
lib/docs/filters/tailwindcss/clean_html.rb

@@ -52,6 +52,9 @@ module Docs
           node.parent.parent['class'] = node.parent.parent['class'].gsub(/bg-.*?\b/, ' ');
         end
 
+        #remove weird <hr> (https://github.com/damms005/devdocs/commit/8c9fbd859b71a2525b94a35ea994393ce2b6fedb#commitcomment-50091018)
+        css('hr').remove
+
         doc
 
       end