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

Add generate_html to lib.rs #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

DSchroer
Copy link

Adds generate_html to the library. Allowing the user to generate HTML from a Vec<Block>.

Right now my program has to:

let blocks = markdown::tokenize(input);
// modify blocks here
let md = markdown::generate_markdown(blocks);
return markdown::to_html(&md);

This would allow me to write it like this instead:

let blocks = markdown::tokenize(input);
// modify blocks here
return markdown::generate_html(blocks);

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

Successfully merging this pull request may close these issues.

1 participant