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

Export HTML utilities #193

Merged
merged 1 commit into from
Sep 17, 2023
Merged

Export HTML utilities #193

merged 1 commit into from
Sep 17, 2023

Conversation

eatyourgreens
Copy link
Contributor

@eatyourgreens eatyourgreens commented Sep 17, 2023

Export the markdown-to-HTML utilities separately from the React components, so that they can be used by consumers that need to convert Zooniverse-flavoured markdown to HTML strings.

import { utils } from 'markdownz';

const content = `
# A test document

This is a test [with a link](https://www.zooniverse.org).
`
const html = utils.getHTML({ content });

@eatyourgreens eatyourgreens force-pushed the export-html-utils branch 4 times, most recently from a590f68 to f253787 Compare September 17, 2023 13:38
Export the markdown-to-HTML utilities separately from the React components, so that they can be used by consumers that need to convert Zooniverse-flavoured markdown to HTML strings.
@eatyourgreens eatyourgreens merged commit 657581a into master Sep 17, 2023
@eatyourgreens eatyourgreens deleted the export-html-utils branch September 17, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant