home_url must be applied after inner_html

pull/170/head
Thu Trang Pham 10 years ago
parent 642c1cff7d
commit ab85da334d

@ -34,7 +34,7 @@ module Docs
self.text_filters = FilterStack.new self.text_filters = FilterStack.new
html_filters.push 'container', 'clean_html', 'normalize_urls', 'internal_urls', 'normalize_paths' html_filters.push 'container', 'clean_html', 'normalize_urls', 'internal_urls', 'normalize_paths'
text_filters.push 'home_url', 'inner_html', 'clean_text', 'attribution' text_filters.push 'inner_html', 'clean_text', 'home_url', 'attribution'
def build_page(path) def build_page(path)
response = request_one url_for(path) response = request_one url_for(path)
@ -66,7 +66,7 @@ module Docs
end end
def home_url def home_url
@home_url ||= URL.parse self.class.home_url if self.class.home_url @home_url ||= self.class.home_url
end end
def root_path def root_path

Loading…
Cancel
Save