Rehype-Formatter throwing error in test suite
Hi, i am not sure if this belongs here but I did not find a place for rehype. rehype-formatter. We are using rehype to format our html which is working fine. But when we are trying to write test cases for our code, rehype is throwing the following error.
Agent of User·19h
Inlining styles with rehype-highlight
I'm trying to use rehype-highlight and, while I did get it to annotate the html with the proper css class names, I still haven't figured out how to: 1. link the stylesheet with the actual class definitions 2. inline the styles in the html …
I wrote a little package to wrap heading content into nested `<section>` tags
Here it is: https://github.com/agentofuser/rehype-section It's my first time working with unified and it was a lot of fun! The package itself is more of an exercise in defining a boilerplate for future packages than anything too significant on its own, but it can come in handy…
Replacing a script block with a script import
I have a need to replace a <script>some js code here</script> with a <script src="external.js"></script> in an html file that was generated by another tool. rehype seems like it would be a great fit for the task, but since I'm new to using rehype, I'm not quite sure where to…
rehype converting single quotes inside property values to '
I'm trying to use rehype with a Vue.js template but it seems to be converting: To: vue-loader then throws an error when it sees this. I guess because it doesn't know how to parse it. Is this a bug? Does anyone know of a workaround?
How to get rehype-parse to emit errors without middleware
I would like to use rehype-parse to parse some html and emit errors if there is an error. This is shown in the example with .use(rehype2remark) and .use(stringify) followed by .process(...) I would like to do something like the following instead, but this gives me an error,…