Copy over the plugins

This commit is contained in:
2026-08-08 19:53:22 -04:00
parent 3a2ae757c0
commit ea77e8f02a
7 changed files with 196 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# frozen_string_literal: true
# Turns ==something== in Markdown to <mark>something</mark> in output HTML
Jekyll::Hooks.register [:notes], :pre_render do |doc|
replace(doc)
end
Jekyll::Hooks.register [:pages], :pre_render do |doc|
# jekyll considers anything at the root as a page,
# we only want to consider actual pages
next unless doc.path.start_with?('_pages/')
replace(doc)
end
def replace(doc)
doc.content.gsub!(/==+([^ ](.*?)?[^ .=])==+/, "<mark>\\1</mark>")
end