Metadata set in an entity's docstring is now read as soon as possible and separately to the markdown conversion. This allows us to wait till after the correlate step to do the markdown conversion, which will be important for replacing sub_links with a markdown extension.
This PR also converts the entity metadata to a dataclass, which gives us better type checking and auto-completion, etc, for the metadata.
Metadata set in an entity's docstring is now read as soon as possible and separately to the markdown conversion. This allows us to wait till after the correlate step to do the markdown conversion, which will be important for replacing
sub_links
with a markdown extension.This PR also converts the entity metadata to a dataclass, which gives us better type checking and auto-completion, etc, for the metadata.