Hi,
I have site that is using Blogofile but is not rendered as a blog.
I'm trying to use Markdown in one of the pages but when I try to build the site, it gives me a
blogofile.exception.FilterNotLoaded: Filter not loaded: markdown
My _config.py is this:
site.author = "Chua Chee How"
site.file_ignore_patterns = [
".*/_.*",
".*/\..*\.swp$",
".*/.(git|hg)ignore$"
]
filters.markdown.extensions.enabled= True
filters.markdown.extensions.def_list.enabled = True
filters.markdown.extensions.abbr.enabled = True
filters.markdown.extensions.footnotes.enabled = True
filters.markdown.extensions.fenced_code.enabled = True
filters.markdown.extensions.headerid.enabled = True
filters.markdown.extensions.tables.enabled = True
I have a page conventions.html.mako that has a section that uses Markdown:
<%inherit file="_templates/site.mako" />
<%self:filter chain="markdown">
In my _templates/site.mako, I have this:
<%def name="filter(chain)">${bf.filter.run_chain(chain, capture(caller.body))}</%def>
I tried adding filters.markdown.enabled = True in _config.py but it does solve my problem.
I'm sure the solution is simple, but I'm not seeing it. I have no problem with Markdown if I enable the Blog plugin.
Any advice is greatly appreciated.
Thanks!
CH