Skip to content

A fork of the standard gnoweb for hosting pflow.xyz

License

Notifications You must be signed in to change notification settings

pflow-xyz/pflow-dapp

Repository files navigation

gnosrv: Markdown Extensions for Gno.land

Interactive Extensions for gnodev Markdown Rendering

Try it on Fly.io -> https://pflow-dapp.fly.dev/r/pflow

Motivation

We want to push Markdown beyond static text — without losing its simplicity. By extending gnodev's rendering engine, we enable interactive models, visual editors, and programmable UIs to live directly inside realm Markdown.

This lets Gno developers:

  • Keep content readable and versionable in plain text
  • Embed interactive logic models (e.g., Petri nets, grids, sprites)
  • Preview and test rich simulations without leaving the realm

⚙️ Code-as-content meets content-as-interface.

What's New in gnosrv vs gnoweb

gnosrv introduces several enhancements over gnoweb, making it more powerful and flexible for Markdown rendering:

  1. Gno-Mark Support:
    A new <gno-mark> tag is supported, which allows embedding JSON data directly into Markdown. This enables dynamic and interactive content to be rendered seamlessly.

  2. Additional Plugins:
    We have enabled several new plugins to extend Markdown functionality:

    • img64 Plugin:
      This plugin allows images to be embedded as base64-encoded data, with caching tied to the page's lifetime. This solves common CDN-related issues and ensures reliable image delivery.
    • mermaid Plugin:
      We are excited to use Mermaid for creating diagrams and visualizations directly in Markdown. This makes it easier to include rich, interactive diagrams without external tools.
    • figure Plugin:
      Adds support for enhanced image captions and figure elements, improving content presentation.
  3. Improved Caching and Rendering:
    The img64 plugin ensures that images are cached efficiently, reducing dependency on external resources and improving page load times.

These features make gnosrv a more robust and developer-friendly tool for creating interactive and visually rich Markdown content.

About

A fork of the standard gnoweb for hosting pflow.xyz

Resources

License

Stars

Watchers

Forks

Packages

No packages published