Questions tagged [rehypejs]
6 questions
1
vote
0 answers
Tailwind CSS is unstyling page created through remark and rehype
Problem overview
I have a Next.js project in which Tailwind was recently added for styling purposes, and it completely destroyed the format of some blog post pages created through Remark and Rehype. The problem is that Tailwind CSS removes styling…

Ramon Orraca
- 31
- 1
- 4
1
vote
1 answer
Under Unifiedjs ecosystem, what does RECMA stand for?
So when parsing mdx, you typically use remark plugins for markdown, and rehype plugins for HTML. I see a third category called recma plugins. What does recma stand for and what is it? Google surprisingly has no results on this.
For example, this…

wongz
- 3,255
- 2
- 28
- 55
0
votes
1 answer
onVisitHighlightedLine cannot push classname using Rehype Pretty code
I'm using Rehype Pretty code to add syntax highlighting to my MDX blog. But I'm not able to get the line highlighting to work.
As per the documentation and few other resources, below is the configuration that should work, but I'm getting the…

Gangula
- 5,193
- 4
- 30
- 59
0
votes
0 answers
How do I use Rehype React?
I am trying to convert some html to react components with rehype-react, I'm first just testing what I can do but changing a p tag to my own custom component that will turn it red however it doesn't seem to be working despite my following of the…

Hides
- 496
- 1
- 5
- 15
0
votes
0 answers
How can I use 'rehype-katex' and/or 'remark-math' and have copy/paste (from webpage to text editor) copy the underlying LaTeX code?
I just integrated rehype-katex with MDX for Next.js, and it is rendering nicely:
However, when I highlight the math-rendered text like "10⁹" in that image, and paste it into my text editor (Visual Studio Code), it pastes as "109", when I originally…

Lance
- 75,200
- 93
- 289
- 503
0
votes
1 answer
How to use MDX custom elements in contentlayer
I'm building a site that makes use of Nextjs and Contentlayer to render a bunch of MDX files.
I basically followed this tutorial to get it set up, except I'm going with MDX instead of plain markdown.
I'm using Contentlayer because the standard way…

Sheena
- 15,590
- 14
- 75
- 113