Is there a way to get an HTML string ? #487
-
Hello there ! I'm looking for a way of getting an HTML string after compilation ? import { serialize } from "next-mdx-remote/serialize";
const mdxString = `# Hello world`;
const serialized = await serialize(mdxString);
console.log("serialized", serialized); And the output is this :
If there's a way to get an HTML string then i would be able to use html-validate on it without rendering it first (this is what i'm doing now and this is a mess to manage). This is related to this post. I would like to be able to : |
Beta Was this translation helpful? Give feedback.
Answered by
Bilboramix
Feb 25, 2025
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Bilboramix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved with this