Skip to content

._get_compiled_doc memoizes in ._doc yet is called in different conditions #11

@o-jasper

Description

@o-jasper

_generate_html_toc adds libmarkdown.MKD_TOC to .flags, so differing from the other ones that call _get_compiled_doc. I am not sure what the effect of changing .flags is.

Since the memoized value is invalidated want to

if self.flags &libmarkdown.MKD_TOC ==0: delattr(self, '_doc')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions