Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply jinja on html produced by omd #3

Open
jchavarri opened this issue Apr 3, 2021 · 0 comments
Open

Apply jinja on html produced by omd #3

jchavarri opened this issue Apr 3, 2021 · 0 comments

Comments

@jchavarri
Copy link

Maybe this is a very bad idea 😅

I have tried to use filters from markdown files (e.g. add {{ component | react }} in an .md files), but it seems the generated html content is just placed in output folder as it is returned from omd.

I wonder if it would be possible to process with jinja the resulting html from markdown. This would allow to apply filters inside md files.

For escaping, one could use jinja raw blocks. As long as they remain in same line it would work fine:

{% raw %}Anything in this block is treated as raw text,
including {{ curly braces }} and
{% other block-like syntax %}{% endraw %}

This would have an impact in performance as well, I imagine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant