-
Notifications
You must be signed in to change notification settings - Fork 427
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
render wavedrom in code block #467
Comments
Works by using the wavedrom python package to render an SVG and embeds that inside the HTML.
Hi there! I'm working an implementation of this feature using the wavedrom python package. So far, in order to use it you put your waves inside a fenced code block, setting "wavedrom" as the language like so:
The wavedrom extra will then render and directly embed the resulting SVG into the output like so:
Was this the kind of implementation you had in mind? |
Just added a commit that will allow the SVG embedding to be disabled. If this is the case, or if the wavedrom python package is not installed, then the extra will wrap the code in To control the SVG embedding, one would pass the wavedrom extra as a import markdown2
markdown2.markdown("[some stuff]", extras={"wavedrom": {"prefer_embed_svg": False}}) |
Yeah that's exactly what i had in my mind 😍 I am already using the javascript directly as workaround. |
For documentation purposes its really nice to create diagrams easily using
code
.It would be nice if you can support wavedrom.
https://wavedrom.com/
The text was updated successfully, but these errors were encountered: