diff options
author | EuAndreh <eu@euandre.org> | 2020-10-30 16:00:01 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-10-30 16:00:01 -0300 |
commit | 696024cfca55c4f4bff7b79fa7ae13de6ee29623 (patch) | |
tree | 8a514feaf9432973dc6384d69603219319e4ed62 /_plugins/add-anchor-to-header-from-header-id.rb | |
parent | Interview article: proofread and remove duplicated uses of "even" (diff) | |
download | euandre.org-696024cfca55c4f4bff7b79fa7ae13de6ee29623.tar.gz euandre.org-696024cfca55c4f4bff7b79fa7ae13de6ee29623.tar.xz |
Wrap header with link using a div rather than a span
Diffstat (limited to '_plugins/add-anchor-to-header-from-header-id.rb')
-rw-r--r-- | _plugins/add-anchor-to-header-from-header-id.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/_plugins/add-anchor-to-header-from-header-id.rb b/_plugins/add-anchor-to-header-from-header-id.rb index 33e3ad7..b90d22c 100644 --- a/_plugins/add-anchor-to-header-from-header-id.rb +++ b/_plugins/add-anchor-to-header-from-header-id.rb @@ -3,7 +3,7 @@ Jekyll::Hooks.register [:documents, :pages], :post_render do |doc| doc.output = doc.output.gsub( /<h([1-6])(.*?)id="([\w-]+)"(.*?)>(.*?)<\/h[1-6]>/, - '<span class="header-anchor"><h\1\2id="\3"\4>\5</h\1><a href="#\3"><img class="simple-icon" src="/images/link.svg" aria-hidden="true" /></a></span>' + '<div class="header-anchor"><h\1\2id="\3"\4>\5</h\1><a href="#\3"><img class="simple-icon" src="/images/link.svg" aria-hidden="true" /></a></div>' ) end end |