Skip to content

Commit

Permalink
fix inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
KonnorRogers committed Nov 5, 2024
1 parent 8a097ef commit 480849b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/plugins/builders/inspectors.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
require "cgi"

class Builders::Inspectors < SiteBuilder
module Syntax
def self.full_language(language)
return "" if language.nil?

Rouge::Lexer.find(language).title || language.titleize
end
end

def build
inspect_html do |document|
grab_headers(document)
Expand Down

0 comments on commit 480849b

Please sign in to comment.