Skip to content

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

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')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions