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

Render pikchr in static outputs #3

Open
bollwyvl opened this issue Dec 10, 2022 · 2 comments
Open

Render pikchr in static outputs #3

bollwyvl opened this issue Dec 10, 2022 · 2 comments

Comments

@bollwyvl
Copy link
Contributor

Elevator Pitch

Allow pikchr to be either rendered in-browser or as img or svg tags in various outputs.

There might also be the case for rendering syntax-highlighted pikchr source.

Motivation

This would make pickhr diagrams more useful in documentation.

Prior Art

Design Ideas

drawing pikchr:

  • rendering in-browser
    • get the .wasm and a (new) .js into the document somehow and then rendering.
  • rendering in python
    • getting pickhr more widely-installable and shelling out
    • using a wasm backend (probably wasmer-python)
      • this would be an optional dependency

highlighting pikchr:

@bollwyvl bollwyvl mentioned this issue Dec 10, 2022
@bollwyvl
Copy link
Contributor Author

The emscripten-compiled .wasm doesn't work simply in wasmer. May proceed with getting it compiled for e.g. conda-forge.

@bollwyvl
Copy link
Contributor Author

This is now available on conda-forge as fossil-pikchr.

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