Skip to content

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