module HtmlFilters
Overview
Functions that take a Lexbor document and return a modified version
To create a Lexbor document, use Lexbor::Parser.new(html)
Defined in:
html_filters.crClass Method Summary
-
.downgrade_headers(doc, n = 2)
Downgrade all headers by n levels (h1 -> h3 if n=2)
-
.make_links_relative(doc, base)
Make all relative links absolute to the site root base is where the file containing the URIs is located relative to the site root
Class Method Detail
def self.make_links_relative(doc, base)
#
Make all relative links absolute to the site root base is where the file containing the URIs is located relative to the site root