Skip to content

Is it possible to create a custom reusable HTML block? #7451

Answered by alexvoss
vlad-ivanov-name asked this question in Q&A
Discussion options

You must be logged in to vote

I had a look and it seems that Python Markdown passes not only HTML elements through but also custom elements like the one you would like to use. If you can then animate it in the way you want using some added JavaScript then that should work fine.

If Javascript does not work for you or your use case, you could try the Macros plugin, which allows you to replace a placeholder with content using Python.

Replies: 1 comment 1 reply

Comment options

alexvoss
Aug 16, 2024
Collaborator Sponsor

You must be logged in to vote
1 reply
@squidfunk
Comment options

Answer selected by vlad-ivanov-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants