Comments (6)
some context: planetscale/beam#48 (comment)
from mack.
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.
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.
using either marked
or unified
would probably be ideal to keep the bundle size small
from mack.
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.
sounds good! thanks
from mack.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mack.