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

Convert internals to use mdast for future conversion features (i.e. to HTML), serialization, etc. #10

Closed
zrosenbauer opened this issue Jul 14, 2023 · 1 comment
Assignees
Milestone

Comments

@zrosenbauer
Copy link
Member

zrosenbauer commented Jul 14, 2023

Describe the problem you'd like to have solved

Currently the internals are stored as a "plain object" with no rhyme or reason (just needed to get it working...). This makes it difficult to integrate with prebuilt libraries like those from unifiedjs that would be great for translation from MD <=> HTML and also for serialization.

Describe the ideal solution

Covert the internals to use mdast format for storing the "built" document.

Alternatives and current work-arounds

👎 Build your own convertor, but you'd have to extend the class and expose the internals

Additional context

n/a

@zrosenbauer zrosenbauer self-assigned this Jul 14, 2023
@zrosenbauer zrosenbauer added this to the Release v1 milestone Jul 14, 2023
@zrosenbauer
Copy link
Member Author

After deep diving, better to output md => mdast vs. building into the lib.

Closing in favor of #12

@zrosenbauer zrosenbauer closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant