Skip to content

Macro Rendering Error

File: adr/summary.md

AssertionError:

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/mkdocs_macros/plugin.py", line 688, in render
    return md_template.render(**page_variables)
           ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/jinja2/environment.py", line 1295, in render
    self.environment.handle_exception()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/jinja2/environment.py", line 942, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 3, in top-level template code
  File "/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/mkdocs_macros_adr_summary/plugin.py", line 45, in adr_summary
    parser.parse(absolute_path.joinpath(f), env.conf["docs_dir"])
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/mkdocs_macros_adr_summary/parser/base.py", line 49, in parse
    metadata, ast = cls._get_metadata_and_ast(file)
                    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/mkdocs_macros_adr_summary/parser/madr3.py", line 46, in _get_metadata_and_ast
    md_ast = cls.parser.parse("\n".join(md_file))
  File "/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/mistune/markdown.py", line 105, in parse
    result = hook3(self, result, state)
  File "/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/mistune/plugins/footnotes.py", line 98, in md_footnotes_hook
    assert isinstance(result, str)
           ~~~~~~~~~~^^^^^^^^^^^^^
AssertionError