Skip to content

Commit

Permalink
changed order
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Sep 28, 2024
1 parent 5ec3bdb commit 42351e5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/jekyll-gfm-admonitions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ class GFMAdmonitionConverter < Jekyll::Generator
priority :lowest
@admonition_pages = []

class << self
attr_reader :admonition_pages
end


def generate(site)
init_converter(site)
process_posts(site)
Expand Down Expand Up @@ -67,10 +72,6 @@ def process_doc_content(doc)
self.class.admonition_pages << doc
end

class << self
attr_reader :admonition_pages
end

def process_doc(doc)
code_blocks = []
# Temporarily replace code blocks by a tag, so that we don't process any admonitions
Expand Down

0 comments on commit 42351e5

Please sign in to comment.