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
The problem is, that in the first hook, onPageContentRaw, mediaembed is called with the raw twig code (before twig) whereas in the second hook (onPageContentProcessed) it is called where the twig code is already substituted (after markdown). I would like to have mediaembed called between twig and markdown.
I have a simple loop in Twig inside my page that iterates over an array and outputs code for mediaembed like the following
The problem is, that in the first hook,
onPageContentRaw
, mediaembed is called with the raw twig code (before twig) whereas in the second hook (onPageContentProcessed
) it is called where the twig code is already substituted (after markdown). I would like to have mediaembed called between twig and markdown.From what i found, wouldn't it be better if mediaembed is called within
onMarkdownInitialized
instead of or additinally to the other two hooks? see this example: https://github.com/getgrav/grav/pull/747#issuecomment-206821370`The text was updated successfully, but these errors were encountered: