Giter VIP home page Giter VIP logo

Comments (6)

marissamarym avatar marissamarym commented on August 15, 2024

some context: planetscale/beam#48 (comment)

from mack.

EndBug avatar EndBug commented on August 15, 2024

I guess we could switch to marked and ditch remarked, rehype, and unified entirely
I know that unified is the same that has been used in martian etc. but to keep it we would have to use the HTML output from marked and then convert that with unified , but that would require using rehype so it wouldn't completely solve the issue

With marked we could use the lexer that it uses under the hood (docs) to parse the tree, and then convert that tree into Slack blocks in a similar way as we are now

from mack.

marissamarym avatar marissamarym commented on August 15, 2024

yeah with marked we can also specify a custom renderer. the thing there is I think all of the custom renderer functions return strings so we’d have to figure out how to have it work with returning objects

from mack.

marissamarym avatar marissamarym commented on August 15, 2024

using either marked or unified would probably be ideal to keep the bundle size small

from mack.

EndBug avatar EndBug commented on August 15, 2024

Yeah I think that the issue with unified is that you have to install the different processors (like remarked and rehype), while marked should be able to do everything by itself
I'll take a look at it next week 👍🏻

from mack.

marissamarym avatar marissamarym commented on August 15, 2024

sounds good! thanks

from mack.

Related Issues (8)

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.