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.cr

Class Method Summary

Class Method Detail

def self.downgrade_headers(doc, n = 2) #

Downgrade all headers by n levels (h1 -> h3 if n=2)


[View source]
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


[View source]