Open clehene opened 9 months ago
Hi @clehene, thanks for the report. For elements like BlockCode
or HtmlBlock
, the content
property/attribute makes sense (see #163). For others, like Heading
, not so much.
As you are not the first to ask this question (see #99), I think the simplest thing to do now is to rename the reported Heading's content
class attribute to _content
, so that it is clear that it is not a part of the public API. That would be in-line e.g. with _open_info
in the CodeFence
token class.
I can also imagine we could introduce a getter property called text
or similar that would recursively concat text from the child tokens, but that would be for another feature request...
The
content
forblock_token.Heading
gets harwill output