Closed bluefish6 closed 1 year ago
parse_inline()
should never be called separately. It should be an internal implementation detail.
This does not seem to be mentioned in the documentation:
If this method is not supposed to be used publicly, maybe a good idea would be to rename it to _parse_inline
?
Hi,
leads to:
However:
runs properly:
After digging into code it becomes obvious as to why such behavior is observed -
marko.inline.parser
is indeed set toNone
(hence the error), but it's overwritten with the Parser() instance whenParser.parse()
is run (hence it works in the second snippet above). I'm not entirely sure why this initialization was moved from__init__
to this place, but it seems like it should be done inParser.parse_inline()
as well?