Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Markdown to array of objects #991

Open
indicozy opened this issue Nov 5, 2023 · 0 comments
Open

[Suggestion] Markdown to array of objects #991

indicozy opened this issue Nov 5, 2023 · 0 comments

Comments

@indicozy
Copy link

indicozy commented Nov 5, 2023

Hi there!

I was using Showdown in Qwik (React-like framework) project, however, I need to convert html to JSX components. Is it possible to get from Showdown an array of HTML objects?

For example:

const markdown = "# Hi there!";
const json = converter.makeJSON(markdown);

Will result to:

{
frontmatter: {...some keys},
content: [{name: "h1", parameters: {classes: ["classNames"...], content: "Hi there!"}, {name: "h2", }}...]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant