You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I'm looking for some clarifications on the front_matter plugin since I'm not all that deep into python.
as far as I can tell all it does is parse front matter as a token
the only way of accessing the data I've found is writing a custom render rule that accepts the token and then send that back to wherever you need it. while this isn't all that bad it still feels very clunky but more importantly undocumented. python-markdown for comparison simply allows you to retrieve the data as a dictionary from the markdown object after rendering something. even the js implementation of frontmatter accepts a callback function
it doesn't actually parse any front matter, as in, it doesn't check that it actually is a collection of key-value pairs. so it almost does nothing? The only use case without tinkering around yourself seems to be to remove it from the document.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi I'm looking for some clarifications on the front_matter plugin since I'm not all that deep into python.
python-markdown
for comparison simply allows you to retrieve the data as a dictionary from the markdown object after rendering something. even the js implementation of frontmatter accepts a callback functionBeta Was this translation helpful? Give feedback.
All reactions