浏览代码

Jest links work (#826)

Beau Carnes 7 年之前
父节点
当前提交
eaeb2bd321
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/docs/filters/jest/clean_html.rb

+ 2 - 2
lib/docs/filters/jest/clean_html.rb

@@ -12,8 +12,8 @@ module Docs
           node.before(node.children).remove
         end
 
-        css('.anchor[name]').each do |node|
-          node.parent['id'] = node['name']
+        css('.anchor').each do |node|
+          node.parent['id'] = node['id']
           node.remove
         end