Skip to content

Confused by all the packages #1379

Answered by wooorm
melMass asked this question in Q&A
Nov 1, 2024 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

TLDR What libraries should I use if I want only mdast output with a way to hook (by extensions) to the tokenizer

So I doubt that this is what you want. Because you actually have HTML. And want to regex it. But regexing HTML is a bad idea. ASTs are better. So you probably want to do more complex things than what you ask.

Looking at your question literally, you look for https://github.com/syntax-tree/mdast-util-from-markdown.

But indeed, I’m thinking that we’ll have 5 back and forth question about how to best solve your problems and it’ll include rehype-raw and AST transforms of the HTML in your markdown.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@melMass
Comment options

@ChristianMurphy
Comment options

Comment options

You must be logged in to vote
1 reply
@melMass
Comment options

Answer selected by melMass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants