Giter Site home page Giter Site logo

Monadic `blockRender`? about mmark HOT 3 CLOSED

mrkgnao avatar mrkgnao commented on July 22, 2024
Monadic `blockRender`?

from mmark.

Comments (3)

mrkkrp avatar mrkkrp commented on July 22, 2024

I have exposed enough of the internal machinery in #116, so it should be possible to write arbitrary custom renders.

from mmark.

emekoi avatar emekoi commented on July 22, 2024

I actually implemented #116 in a local fork of mmark to try to write a monadic renderer and I don't think it's sufficient since extensions and renderers are currently pure (they are basically records of Endos) and specialized to produce HtmlT Identity () so you can't change the underlying monad. Supporting monadic extensions and renderers amounts to replacing Endo a with Kleisli m a a so you get some type like MMarkT m and MMark = MMarkT Identity.

from mmark.

mrkkrp avatar mrkkrp commented on July 22, 2024

@emekoi Could you open a PR for that?

from mmark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.