initial jekyll refactor
This commit is contained in:
6
_plugins/header.rb
Normal file
6
_plugins/header.rb
Normal file
@ -0,0 +1,6 @@
|
||||
# https://stackoverflow.com/a/53893197/
|
||||
class Jekyll::MarkdownHeader < Jekyll::Converters::Markdown
|
||||
def convert(content)
|
||||
super.gsub(/<h(2) id="(.*?)">(.*)<\/h(\d)>/, '<h\1 id="\2">\3<a href="#\2" class="header-link">[<img src="/assets/images/link.svg" />]</a></h\1>')
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user