-
-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Labels
💪 phase/solvedPost is donePost is done
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and discussions and couldn’t find anything (or linked relevant results below)
Affected package
Steps to reproduce
import rehypeParse from "rehype-parse";
import rehypeRemark from "rehype-remark";
import remarkStringify from "remark-stringify";
import { unified } from "unified";
const processor = unified()
.use(rehypeParse)
.use(rehypeRemark)
.use(remarkStringify, {
fences: true,
});
const main = async () => {
const vfile = await processor.process(`<p>A<span><br /><span>B</p>`);
console.log("RESULT", vfile.value);
};
main().catch(console.error);
Actual behavior
RESULT AB
Expected behavior
RESULT A\
B
Runtime
No response
Package manager
No response
Operating system
No response
Build and bundle tools
No response
Metadata
Metadata
Assignees
Labels
💪 phase/solvedPost is donePost is done