Skip to content

Cannot process without Compiler #113

Discussion options

You must be logged in to vote

unified.process() will try to take text, turn it into an AST, and back into text.

| ........................ process ........................... |
| .......... parse ... | ... run ... | ... stringify ..........|

          +--------+                     +----------+
Input ->- | Parser | ->- Syntax Tree ->- | Compiler | ->- Output
          +--------+          |          +----------+
                              X
                              |
                       +--------------+
                       | Transformers |
                       +--------------+

https://github.com/unifiedjs/unified#description

In your example you are parsing markdown, but don't have a compiler to take i…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristianMurphy
Comment options

You must be logged in to vote
3 replies
@ChristianMurphy
Comment options

@majiang
Comment options

@ChristianMurphy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗄 area/interface This affects the public interface
3 participants