menu
Channels
# All channels
view-forward
# general
view-forward
# micromark
view-forward
# redot
view-forward
# rehype
view-forward
# remark
view-forward
# retext
view-forward
# syntax-tree
view-forward
# type-definitions
view-forward
# unified
view-forward
# vfile
view-forward
Team
Posts
Members
Info

How do I prevent rehype from turning a plain text URL into an anchor element?

I don't want rehype to parse "http://google.com" and wrap it in an anchor element.

thumbsup
0
message-simple
2

Guides on building new grammars and parsers?

I'm interested in potentially using unified in one of my projects. I was wondering if there are any good guides or blog posts about building your own syntax tree definitions or parsers. Thanks!

thumbsup
0
message-simple
8

help

Hi there, are there any beginner-friendly tutorials on generating an HTML AST? I’m not sure I understand how I could go about it.

thumbsup
0
message-simple
2

Custom HTML elements in markdown

Hi, Not sure where i should post this :) Say i have some <Tab custom="42">hello</Tab> elements in my MDX …

thumbsup
1
message-simple
20

Is it possible to support a 1 to many vfiles w/ Unified Processor Pipeline

I love this project.It is a bit to wrap your head around at the beginning but once its clicks, its so clean. That said, I have a case where I would want to read in an MD file with a mermadi chart - (lucky for me, remark-mermaid already exists.) Which is great because I have been…

thumbsup
0
message-simple
19

Question about `plugin` terminology and implementation

I'm a big fan of the approach unified takes and the quality of the ecosystem but writing some 'plugins' has left me pretty confused. I've been working with remark-parse, remark-rehype and rehype-stringify mostly. In the case of remark-parse you get direct access to the Parser,…

thumbsup
1
message-simple
6

Is it possible to wrap all top-level nodes?

I'm developing a site with GatsbyJS which uses remark for parsing Markdown. For my articles I want all top-level nodes (headings, paragraphs, lists) wrapped in a div with the class container container--small. All image nodes should just be wrapped with the class container. At…

thumbsup
0
message-simple
9

Unified compilers, replacing AST nodes

Hi! I'm trying to write my own compiler for MDX AST (the current one produces ES modules and I need something else). 1) Is there any guide/content on writing unified compilers? I've finished a basic guide on writing plugins. 2) How should I approach node replacement? Is it ok to…

thumbsup
0
message-simple
1

markserv for remark

I found this tool called markserv that is very good for iterating on a stand-alone markdown document like the readme for a repo. It uses markdown-it though, and it would be great to be able to extend it with unified. Is there something like this in the unified ecosystem?

thumbsup
0
message-simple
2

Anyone cached parses across runs?

I'm working on tools that understand entire projects full of markdown files as a whole, and one of the bottlenecks is reparsing everything to analyze link structure. Anyone have tips for pre-parsing, caching parses, or attaching parses to vfiles?

thumbsup
0
message-simple
13