Skip to content

Integrating Markdown Magic with Remark #1138

Discussion options

You must be logged in to vote

Heya @ProfessorManhattan! 👋

markdown-magic works with text and regular expressions, remark works on syntax trees and visitor patterns.
The two work in fundamentally different ways.
You could wrap both of them in a shell script or alias which runs both on the same file, back to back if you wanted, the only benefit would be saving a few keystrokes in the terminal.

It has some unique features that I would like to leverage.

To more efficiently handle files in a single pass.
Consider creating a remark plugin which implements the same feature.
https://unifiedjs.com/learn/ offers some guidance on creating plugins and working with syntax trees.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristianMurphy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants