Skip to content

Combining Retext with Remark / markdown-magic as a Shared Config #1137

Discussion options

You must be logged in to vote

Heya @ProfessorManhattan! 👋

It works as is, here's an example: https://codesandbox.io/p/sandbox/nifty-sky-f8lp7l?selection=%5B%7B%22endColumn%22%3A43%2C%22endLineNumber%22%3A1%2C%22startColumn%22%3A43%2C%22startLineNumber%22%3A1%7D%5D&file=%2FREADME.md
If you're trying something different please share a complete example, ideally in a sandbox.

Some ideas of what could be going on.

  1. you are adding a custom remark-parse, overriding the existing parser, avoid doing so unless you need to customize the parser.
  2. make sure you have your module as type: module in package.json, or your file has the .mjs extension.
  3. make sure you select the language you want retext to parse with, likely retext-english
  4. m…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@ProfessorManhattan
Comment options

@ChristianMurphy
Comment options

@ProfessorManhattan
Comment options

@ProfessorManhattan
Comment options

Answer selected by ChristianMurphy
Comment options

You must be logged in to vote
0 replies
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